Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int a,b,c;
- printf(" Enter the three edge of triangle:");
- scanf("%d %d %d", &a, &b, &c);
- if((a + b) > c && (b + c) > a && (a + c) > b)
- {
- printf("It is a triangle\n ");
- }
- else
- printf("It is not a triangle\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement