Guest User

Untitled

a guest
Jul 15th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int x,y,z,largest;
  7. x*=x;y*=y;z*=z;
  8. printf("Enter the three digits\n");
  9. scanf("%d %d %d\n",x,y,z);
  10. largest=x;
  11. if(y>largest){largest=y;
  12. printf("The three digits can form a right angled traingle\n")}
  13. else if(z>largest){largest=z;
  14. printf("The three digits can form a right angled traingle\n")}
  15. else{printf("The three digits can not form a right angled triangle\n"};
  16.  
  17. return 0;
  18. }
Add Comment
Please, Sign In to add comment