Advertisement
zfhridoy47

problem_6 chapter_2

May 28th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.  
  5.  
  6. int a,b,c;
  7.  
  8. printf(" Enter the three edge of triangle:");
  9.  scanf("%d %d %d", &a, &b, &c);
  10.  
  11.  
  12.   if((a + b) > c && (b + c) > a && (a + c) > b)
  13.   {
  14.  printf("It is a triangle\n ");
  15.   }
  16.  
  17.  else
  18.     printf("It is not a triangle\n");
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement