Advertisement
Raddia_Akter_Hride

problem_6

May 26th, 2019
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a,b,c;
  5.     scanf("%d %d %d", &a, &b, &c);
  6.     if((a+b)>c || (b+c)>a || (c+a)>b)
  7.         printf("It is a valid Tri-angle\n");
  8.     else
  9.         printf("It is not a valid Tri-angle\n");
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement