Question: c program code 2.20 (Circle Area, Diameter and Circumference) For a circle of radius 2, display the diameter, circumference and area. Use the value 3.14159
2.20 (Circle Area, Diameter and Circumference) For a circle of radius 2, display the diameter, circumference and area. Use the value 3.14159 for . Use the following formulas ( r is the radius): diameter =2r, circumference =2r and area =r2. Perform each of these calculations inside the print f statement(s) and use the conversion specification xf. This chapter discussed only integer constants and variables. Chapter 3 will discuss floating-point numbers - that is, values that can have decimal points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
