-
how ı can do it in c++ ?
When user enters ‘C’ or ‘c’ program wants from the user to enter an integer numbers
which are between 1 and 20. (1≤n≤20). Then the program prints a circular nxn matrix
as in the following form:
n n-1 n-2 … 3 2 1
1 n n-1 … 4 3 2
2 1 n … 5 4 3
… … … … … … …
n-3 n-4 n-5 ... n n-1 n-2
n-2 n-3 n-4 … 1 n n-1
n-1 n-2 n-3 … 2 1 n
For example if user enters 5 then the message will be like the following:BIL-200 GROUP A,B,C HOMEWORK PROJECT 3 07/11/2012
3
5 4 3 2 1
1 5 4 3 2
2 1 5 4 3
3 2 1 5 4
4 3 2 1 5
For example if user enters 3 then the message will be like below:
3 2 1
1 3 2
2 1 3
-
Announcements - C++ Programming
Post your attempt, then we'll help.
This isn't a place where you can dump your assignment and get an answer in response.
-
Where's that tumbleweed gif you posted the other day?
-
1 Attachment(s)
-
you just do it like this:
Code:
#include "MagicPixieHelpers.h"
int main()
{
MagicHomeworkPixie* mhpixie= new MagicHomeworkPixie;
bool exists = false;
bool willTry = false;
if(exists)
{
mhpixie->DoMyHomework();
}
else
willTry = true;
return(LearningToProgram(willTry));
}