HTML Tutorial || Networking Assignment || Computer Full Forms || Ms-Office Shortcut Keys || Ms-Office Notes || Number System Notes || Internet Assignment
JavaScript Tutorial || CSS Tutorial || Operating System Notes || History of Computer Assignment || Netwoking Notes || Computer Fundamentals Notes

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