4 by 4 matrix proc - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

4 by 4 matrix proc

erldeeerldee Posts: 19Member
Hi

A program that reads 16 numbers (range 0-99) from standard input and displays them on the screen as 4 by 4 matrix.

e.g 0 23 54 200

55 21 43 65

43 77 83 92

123 65 87 9
It should perform this operations:

>Compute and display the sum of row 1.
>""""""""""""""""""""""""""""" column 2.
>Count and display the number of values greater than 100.
>Wait for a key to be pressed, interchange rows 1 and 2 and redisplay the matrix.

Thanx, God bless.([email protected]).
Sign In or Register to comment.