Advertisement
skashminzim

egypt

Jul 29th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. main()
  4. {
  5. int a,b,c;
  6. float x,y,z;
  7. scanf("%d%d%d",&a,&b,&c);
  8. x=sqrt(a*a+b*b);
  9. y=sqrt(b*b+c*c);
  10. z=sqrt(c*c+a*a);
  11. if (a==0 || b==0 || c==0)
  12. return EOF;
  13. else if (x==c || y==a || z==b)
  14. printf("right");
  15. else
  16. printf("wrong");
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement