Hello I was wondering if anyone could help me with this programming assignment i
ID: 3780679 • Letter: H
Question
Hello I was wondering if anyone could help me with this programming assignment in C++. Thanks in advance! : Write a C++ program that inputs the radius of a circle and then computes the area and circumference of the circle using the following formulae: area = pi * radius * radius circumference = 2 * pi * radius. Set pi to 3.14159. Note that the C++ "^" operator is not an exponentiation operator. The program input/output should look like the following: Enter the radius (in inches): 10.0 Area of a circle with this radius = 314.16 square inches Circumference of a circle with this radius = 62.83 inches
Explanation / Answer
#include #include void main() { clrscr(); float r, area, circum; coutr; area=3.14*r*r; circum=2*3.14*r; coutRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.