Advertisement
aiNayan

3(vi)

Nov 3rd, 2020
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. float a, b, c;
  5. printf("Input triangle angles: ");
  6. scanf("%f%f%f", &a, &b, &c);
  7. if (a + b + c == 180)
  8. printf("Triangle is valid");
  9. else
  10. printf("Triangle is not valid");
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement