Skip to content

Instantly share code, notes, and snippets.

@echo-akash
Created August 10, 2017 17:27
Show Gist options
  • Save echo-akash/a1d438db484534a2919ca17ba9a23ad7 to your computer and use it in GitHub Desktop.
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.
#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