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