DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C (http://www.daniweb.com/forums/forum118.html)
-   -   Supply it (http://www.daniweb.com/forums/thread167161.html)

taichou Jan 9th, 2009 4:43 am
Supply it
 
please help me with this
SUPPLY IT!

Your program will have a 3x3 array. The user will input the sum of each row and each column. Then the user will input 3 values and store them anywhere, or any location or index, temporarily in the array. Your program will supply the remaining six (6) values and determine the exact location of each value in the array.
Example:
Input: Sum of row 1: 6
Sum of row 2: 15
Sum of row 3: 24
Sum of column 1: 12
Sum of column 2: 15
Sum of column 3: 18
Value 1: 3
Value 2: 5
Value 3: 6

Output: Sum of Row
1 2 3 6
4 5 6 15
7 8 9 24
Sum of column
12 15 18
Note: Your program will not necessary sort the values in the array.

Murtan Jan 9th, 2009 5:20 am
Re: Supply it
 
Quote:

store them anywhere
Who gets to pick where they are stored?

Ok, post the code for what you already know how to do.

Remember to use C code tags:
[code=C]
/* your code here */
[/code]


All times are GMT -4. The time now is 12:54 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC