Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- double x, y, z;
- printf("Enter the angles :\n");
- scanf("%lf %lf %lf", &x, &y, &z);
- if((x + y + z)== 180 && x != 0 && y != 0 && z != 0)
- printf("Valid Triangle\n");
- else
- printf("Not Valid\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement