- 3

C program for area of circle??

Write a program to read a number of units of length (a float) and print out the area of a circle of that radius. Assume that the value of pi is 3.14159 (an appropriate declaration will be given to get the output in centimeter square). Your output should take the form: The area of a circle of radius ... units is.... units. ??? See the above question friends... Is this the normal c program for area of circle ?? Else according to my understanding I think I should get the radius in float type and calculate the area of circle??? Is it correct or wrong?? If anyone found any hint getting the input and printing the output value.. Just say me friends

10th Oct 2018, 12:16 PM
Dhiviya Thirumavalavan
Dhiviya Thirumavalavan - avatar
2 Respuestas
+ 1
MarJan thanks a lot
15th Oct 2018, 7:20 AM
Dhiviya Thirumavalavan
Dhiviya Thirumavalavan - avatar
0
1] You get a floating point number 2] You calculate the area of a circle 3] You print the area you've calculated
10th Oct 2018, 12:24 PM
MarJan
MarJan - avatar