Guest User

Untitled

a guest
Jul 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. int A,B,C,largest,side1,side2;
  2.     printf("enter the 3-dimensions\n");
  3.     scanf("%d%d%d",&A,&B,&C);
  4.     largest==A;
  5.     side1==B;
  6.     side2==C;
  7.     if (B>largest){
  8.     largest==B;
  9.     side1==A;
  10.     side2==C;
  11.     }
  12.     if (C>largest){
  13.     largest==C;
  14.     side1==A;
  15.     side2==B;
  16.     }
  17.     if (largest*largest==side1*side1+side2*side2){
  18.     printf("they could be the sides of right triangle");
  19.     }
Add Comment
Please, Sign In to add comment