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