Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //angles of triangle
- #include<stdio.h>
- #include<math.h>
- int main(){
- int a1,a2,a3;
- printf("Enter first angle: \n");
- scanf("%d",&a1);
- printf("Enter second angle: \n");
- scanf("%d",&a2);
- a3=180-(a1+a2);//sum of angles of a triangle is a+b+c=180
- printf("Third angle = %d",a3);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement