#include<stdio.h>
int main()
{
int a,b,c;
printf("Please Enter three Angle value of the triangle: ");
scanf("%d %d %d",&a,&b,&c);
if(a==0 || b==0 || c==0)
{
printf("
This is Not a Valid Triangle
");
}
else if(a+b+c==180)
{
printf("
This is a Valid Triangle
");
}
else
{
printf("
This is Not a Valid Triangle
");
}
return 0;
}
Output
Please Enter three Angle value of the triangle:90 45 45
This is a Valid Triangle
Add your comment