C Program to Enter Two Angles of a Triangle and Find the Third Angle ?
Q:- Write a C Program to Enter Two Angles of a Triangle and Find the
Third Angle ?
#include<stdio.h>
#include<conio.h>
int main()
{
int a1,a2,a3;
clrscr();
printf(“Enter Two Angles of Triangle=”);
scanf(“%d%d”,&a1,&a2);
a3=180-(a+b);
printf(“Third Angle of Triangle=%d”,a3);
getch();
}
Output
Enter Two Angles of Triangle =
60 30
Third Angle of Triangle = 90
Comments
Post a Comment