//find a triangle exists or not using its three angle
#include "stdio.h"
int main (){
int a1,a2,a3,total;
printf ("Enter all angle :\n");
scanf ("%i%i%i",&a1,&a2,&a3);
total=a1+a2+a3;
if (total==180){
printf ("the triangle exists \n");
}
else {
printf ("the triangle don't exists ");
}
return 0;
}
output otuput output output
Enter all angle :
60
80
40
the triangle exists
No comments:
Post a Comment