#include<stdio.h>
int main()
{
int ag1,ag2,ag3, sum=180;
printf("Enter angles of triangle using space: ");
scanf("%d %d %d", &ag1 , &ag2, &ag3);
if(ag1+ag2+ag3==sum){
printf("the angles entered are of a triangle");
}
else{
printf("No! Its not a triangle");
}
return 0;
}
0 Comments