C programming language  *provide comments Inside the main function write code that will ask the user for the radius of a circle and will display the circle’s diameter, circumference, and area. Use a constant value 3.14159 for pi. The formula for calculating the area is ? = ??2 where ? is the radius of the circle. The formulas for calculating the circumference are ? = ?? ?? ? = 2?? where ? is the diameter of the circle. When displaying all values, only display up to hundredths (2 decimal places

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 14PE
icon
Related questions
Question

C programming language 

*provide comments

Inside the main function write code that will ask the user for the radius of a circle and will
display the circle’s diameter, circumference, and area. Use a constant value 3.14159 for pi. The
formula for calculating the area is
? = ??2
where ? is the radius of the circle. The formulas for calculating the circumference are
? = ?? ?? ? = 2??
where ? is the diameter of the circle. When displaying all values, only display up to hundredths (2 decimal places).

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage