81 727
Assignments Done
99,1%
Successfully Done
In November 2019

# Answer to Question #26277 in C++ for red rose

Question #26277
An angle is considered acute if it is less than 90 degrees, obtuse if it is greater than 90 degrees, and a right angle if it is equal to 90 degrees. Using this information, write a C++ program that accepts an angle, in degrees, and displays the type of angle corresponding to the degrees entered.
1
Expert's answer
2013-03-12T12:09:24-0400
/*An angle is considered acute if it is less than 90 degrees, obtuse if it is
greater than 90 degrees, and a right angle if it is equal to 90 degrees.
Using this information, write a C++ program that accepts an angle, in
degrees, and displays the type of angle corresponding to the degrees
entered.*/
# include <iostream>

using namespace std;

int main(){
cout<<"Enter degrees:";
double d//degrees;
cin>>d;
if (d<90) cout<<"acute";
if (d==90) cout<<"right";

if (d>90) cout<<"obtuse";
cout<<" angle\n";
system("PAUSE");
return 0;
}

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 first!

### Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS