Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int A,B,C,largest,side1,side2;
- printf("enter the 3-dimensions\n");
- scanf("%d%d%d",&A,&B,&C);
- largest==A;
- side1==B;
- side2==C;
- if (B>largest){
- largest==B;
- side1==A;
- side2==C;
- }
- if (C>largest){
- largest==C;
- side1==A;
- side2==B;
- }
- if (largest*largest==side1*side1+side2*side2){
- printf("they could be the sides of right triangle");
- }
Add Comment
Please, Sign In to add comment