can someone tell me how to create magic square on c++ that something like this:
816
357
492
i need to create a program to prove the numbers that i will insert is magic square or not.. :'(
i really need it.. my brain blank when i want to do it :'(
HELP ME PLEASE..
stephanie7
0
Newbie Poster
Recommended Answers
Jump to PostFor your problem I would suggest using a 2-dimensional array.
This way you can easily compute the sum of the rows, columns, or diagonals. Have a look at the link and notice …
All 4 Replies
Kontained
0
Light Poster
stephanie7
0
Newbie Poster
Intrade
33
Junior Poster
stephanie7
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.