I need your help, i need a Turbo C code for this problem..
hope u'll help me guys.?
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 walues in the
array


Thanks..


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Code Interview Questions

Extend the sutherland-hodgman clipping algorithm to clip three-dimensional planes against a regular paralleiepiped

1 Answers   IBM,


void main() { int i=i++,j=j++,k=k++; printf(ā€œ%d%d%dā€,i,j,k); }

1 Answers  


Write a C function to search a number in the given list of numbers. donot use printf and scanf

5 Answers   Honeywell, TCS,


In the following pgm add a stmt in the function fun such that the address of 'a' gets stored in 'j'. main(){ int * j; void fun(int **); fun(&j); } void fun(int **k) { int a =0; /* add a stmt here*/ }

1 Answers  


main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); } int i;

1 Answers  






#define prod(a,b) a*b main() { int x=3,y=4; printf("%d",prod(x+2,y-1)); }

1 Answers  


void main() { char a[]="12345\0"; int i=strlen(a); printf("here in 3 %d\n",++i); }

3 Answers  


#include<stdio.h> main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d..%d",*p,*q); }

1 Answers  


#define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }

4 Answers   Google, HCL, Quick Heal, WTF,


void main() { static int i=i++, j=j++, k=k++; printf(ā€œi = %d j = %d k = %dā€, i, j, k); }

3 Answers  


program to find magic aquare using array

4 Answers   HCL,


write the function. if all the character in string B appear in string A, return true, otherwise return false.

11 Answers   Google,


Categories