i tried everything, i guest is not enough :-) if some one willing to help i appreciated
this is the one of so many trial i have done. but still doesn't work
Code:#include <stdio.h> main() { int a=0, b=0, c=0, d=0, e=0, f=0, g=0, h=0, i=0, j=0, what = 0; c = 10; e = 6; g = 2; j = 1; while (what<10 ) { if (a == 0,b && c != 0) a = b + c; if (b == 0,a && c != 0 || d && e != 0) b = d + e; b = a - c; if (c == 0,e && f != 0 || a && b != 0) c = e + f; c = a - b; if (d == 0,g && h != 0 || b && e != 0) d = g + h; d = b - e; if (e == 0,h && i != 0 || b && d != 0 || c && f != 0) e = h + i; e = c - f; e = b - d; if (f == 0,i && j != 0 || c && e !=0 || f && j != 0) f = i + j; f = c - e; if (g == 0,d && h != 0) g = d - h; if (h == 0,d && g != 0 || e && i !=0) h = e - i; h = d - g; if (i == 0,e && h != 0 || f && j !=0) i = e - h; i = f - j; if (j == 0,f && i != 0) j = f - i; what++; printf("\n %d \n", a); printf("\n %d %d \n", b, c); printf("\n %d %d %d \n", d, e, f); printf("\n%d %d %d %d \n", g, h, i, j); } }



LinkBack URL
About LinkBacks



