Advertisement
Mr_TRex

Triangle

Jun 18th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     double x, y, z;
  5.     printf("Enter the angles :\n");
  6.     scanf("%lf %lf %lf", &x, &y, &z);
  7.     if((x + y + z)== 180 && x != 0 && y != 0 && z != 0)
  8.         printf("Valid Triangle\n");
  9.     else
  10.         printf("Not Valid\n");
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement