Susri

Assignment 6

Oct 8th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int side1,side2,side3;
  5.     scanf("%d %d %d",&side1, &side2, &side3);
  6.     if(side1!=0 && side2!=0 && side3!=0 && side1+side2>side3 && side2+side3>side1 && side1+side3>side2)
  7.     {
  8.  
  9.  
  10.         printf("triangular valid");
  11.     }
  12.     else
  13.     {
  14.         printf("triangular not valid");
  15.     }
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment