Question: the instructor said include and using namespace std; other libraries arent allowed to be used since as he asked for that thank you verry much

 the instructor said include and using namespace std; other libraries arent

the instructor said include and using namespace std;

other libraries arent allowed to be used since as he asked for that

thank you verry much instructors

Q-2: Magic Square: A magic square of order n is an arrangernent of n2 numbers, usually distinct integers. in a square such that the n numbers in all rows, all columns, and both diagonals sum to the same constant A magic square contains the integers from 1 to n2. For example, a magic square of order 3 is given 7 5 3 2 Distinct integers 1 to 9 is in the above magic square. The sum of the numbers in the rows, columns and diagonals are same i.e. 15. Write a C++ program that reads a square of order n from the user and display whether the square is a magic square or not. Assume that maximum size of square is 10ie. 10 X 10 (10 rows and 10 columns) Sample Input Output Enter the order of your square: 4 Enter your square 5 2 6 t is a magio square Sample Input Output Ent Enter er the order of your square:5 square le 5 Itis not a magio

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!