(Circle Area) Write a C++ program that prompts the user for the radius of a circle, then calls inline function circleArea to calculate the area of that circle. π=3.14π=3.14
(Circle Area) Write a C++ program that prompts the user for the radius of a circle, then calls inline function circleArea to calculate the area of that circle. π=3.14π=3.14
The input consists of n (0<n<100) lines.
Each line consists of the double radius (ranges from 1 to 100).
The last line of input consists of Int(-1).
The decimal precision of output is 5.
输入
1.0 2 3 -1
输出
3.14000 12.56000 28.26000