Code
#include<stdio.h>#include<conio.h>
int main()
{
int angle1,angle2,angle3,sum;
printf ("Enter three angles of triangle: ");
scanf("%d%d%d",&angle1,&angle2,&angle3);
sum=angle1+angle2+angle3;
if(sum==180)
{
printf("\nTriangle is valid");
}
else
printf("\nTriangle is invalid");
printf ("\n\nPress any key to close.");
getch ();
return 0;
}
Mast programme
ReplyDeleteMast programme
ReplyDeleteMast programme
ReplyDelete