66 926
Assignments Done
99,1%
Successfully Done
In October 2018

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.
Expert's answer
/*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!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions