Guest_imported
New member
- Jan 1, 1970
- 0
i'm having trouble writing a proggie. can anyone assist?
i have to write a program that reads 16 numbers (range from 0-999) from the standard input and displays them on the screen as a 4 X 4 matrix. Like this:
0 50 2 200
66 21 54 20
1 3 4 6
100 150 120 99
then, it has to:
1) compute and display the sum of row 1
2) compute and display the sum of col 2
3) count and display the number of values > 100
4) wait for a key to be pressed, and then interchange rows 1 and 2 and redisplay the matrix.
i have to write a program that reads 16 numbers (range from 0-999) from the standard input and displays them on the screen as a 4 X 4 matrix. Like this:
0 50 2 200
66 21 54 20
1 3 4 6
100 150 120 99
then, it has to:
1) compute and display the sum of row 1
2) compute and display the sum of col 2
3) count and display the number of values > 100
4) wait for a key to be pressed, and then interchange rows 1 and 2 and redisplay the matrix.