- #include<stdio.h>
- #define SUM 180
- int main(){
- //1
- float firstAngle,secondAngle,thirdAngle;
- //2
- printf("Enter first and second angle of the triangle : ");
- scanf("%f %f",&firstAngle,&secondAngle);
- //3
- thirdAngle = SUM - (firstAngle + secondAngle);
- //4
- printf("You have entered %f and %f\n",firstAngle,secondAngle);
- printf("Third Angle is : %f \n",thirdAngle);
- return 0;
- }
