shipuahamed.com
Uva 11854 – Egypt | Shipu's Blog
Problem:- main(){long a,b,c,d,e,f;while(scanf("%ld %ld %ld",&a,&b,&c)==3){d=a*a;e=b*b;f=c*c;if(a!=0 || b!=0 || c!=0) { if(f==d+e) printf("rightn"); else if(d==e+f) printf("rightn"); else if(e==d+f) printf("rightn"); else printf("wrongn"); }}return 0;}At First you can try to solve this problem if you can't than see this code & find what's your problem . If you copy paste this code you could not improve yourself in programming .