Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- main()
- {
- int a,b,c;
- float x,y,z;
- scanf("%d%d%d",&a,&b,&c);
- x=sqrt(a*a+b*b);
- y=sqrt(b*b+c*c);
- z=sqrt(c*c+a*a);
- if (a==0 || b==0 || c==0)
- return EOF;
- else if (x==c || y==a || z==b)
- printf("right");
- else
- printf("wrong");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement