Saturday, March 1, 2014

WAP to enter the values for matrix and display them in matrix form.

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:

2 comments:

  1. minor mistake, I reckon. return 0; is missing :)

    ReplyDelete
    Replies
    1. THANKS FOR THE COMMENT
      But I am afraid you should know what getch(); actually does.
      getch(); does the same thing as return 0;

      Delete