In this program I have used array to enter the values and display the values in matrix form. I will elaborate how the program works on the basis of the example given below:
For example:
if we enter
5
7
9
4
3
6
7
8
9
then the above values will be displayed in the form:
5 7 9
4 3 6
7 8 9.
The main source code of the program is given below:
minor mistake, I reckon. return 0; is missing :)
ReplyDeleteTHANKS FOR THE COMMENT
DeleteBut I am afraid you should know what getch(); actually does.
getch(); does the same thing as return 0;