Created
August 10, 2017 17:27
-
-
Save echo-akash/a1d438db484534a2919ca17ba9a23ad7 to your computer and use it in GitHub Desktop.
Input three angles of triangle and check whether it's valid triangle or not.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
float x,y,z; | |
printf("enter the three angles:"); | |
scanf("%f%f%f",&x,&y,&z); | |
if(x+y+z<=180) | |
printf("triangle is valid"); | |
else | |
printf("triangle is not valid"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment