Posted by: ujl September 23, 2014
Login in to Rate this Post:
0
?
I need to create a C++ program that calculates diameter, perimeter and area of a semicircle. The formula I used is: diameter = 2r; perimeter = r ( 2 + PI ); area = PI ( r-squired ) /2;
How do I declare r? This is supposed to be in 1 nested if-then statement. I am new to c++ and I am LOST. Please help.
How do I declare r? This is supposed to be in 1 nested if-then statement. I am new to c++ and I am LOST. Please help.