Writing in Do-While loop & using 2 dimentional Arrays

Can someone please write me a short program consistent to the outline below?
(explaining what each code does between "/* & */" would help me understand it and learn it :) but i just cant do it bymyself i tried!

IMPORTANT DETAILS:

1. Only use <stdio.h>
2. MUST use 2 dimentional array AND do-while loop (only these if possible/make it basic.)

store the following nos. into two dimensional arrays

4 -3 4 2
-2 1 4 3
5 3 6 -4
3 2 7 5
2 2 -9 6

User can choose whether the output is all even or odd nos.

Sample Output:

Display all data

4 -3 4 2
-2 1 4 3
5 3 6 -4
3 2 7 5
2 2 -9 6

Choices:
press 1 to display all even nos.
press 2 to display all odd nos.

/* assuming even is chosen */

/* this will show */

Even Numbers

4 4 2
-2 4
6 -4
2
2 2 6

press 1 to display all even nos.
press 2 to display all odd nos.

/* assuming odd is chosen */

/* this will show */

Odd Numbers

-3
1 3
5 3
3 7 5
-9
Last edited on
hey hi john, getting difficulty in arrays program i have a better solution for this is that you can go through this http://cbtsam.com/cl1/cbtsam-cl1-062.php
the solution here is very easy and simple way. hope you get the solution!!
the link wont work :/

the whole website wont even load, i think it may be blocked in my country, philippines :/ programming is my worst subject, this is my 2nd try repeating the course i really need this done in 6 hours or else i fail the subject :(
Last edited on
Topic archived. No new replies allowed.