Answer to Question #204649 in C for tafadzwa

Question #204649

accept the degrees of an angle .determine the type of angle and display it


1
Expert's answer
2021-06-09T04:24:44-0400
#include<stdio.h>
void angle_types(int angle){
	if (angle==90){
		printf("Right Angle"); 
	}
	else if(angle < 90){
		printf( "Acute Angle");
	}
		else if(angle>90 && angle<180){
		printf("Obtuse Angle");
	}
		else if(angle==180){
		printf("Straight Angle");
	}
		else if(angle>180){
	printf("Reflex Angle");
	}
		else if(angle ==360){
	printf("Full Rotation");
	}
}
int main(){
	int angle;
	printf("Enter an angle:\t");
	scanf("%d", &angle);
	angle_types(angle);
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS