Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- long long int a,b,c,d,e,f,g,h,i;
- while(scanf("%lld%lld%lld",&a,&b,&c)!=EOF)
- {
- if(a==0 && b==0 && c==0)
- break;
- d=a*a;
- e=b*b;
- f=c*c;
- g=e+f;
- h=d+f;
- i=d+e;
- if(d==g || e==h || f==i)
- printf("right\n");
- else
- printf("wrong\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment