-->
当前位置:首页 > 题库

PROGRAMMING:3-2 calculate the perimeter and area of a circle

Luz5年前 (2021-05-10)题库424
3-2 write a program to input the radius r of the circle from the keyboard to calculate the circumference Cl and the area CS of the circle respectively. When outputting the calculation results, it is required to retain 4 decimal places.
###Input format:
For example, input gives a decimal or integer on a line.
###Output format:
For example: the first line outputs perimeter, and the second line outputs area.
###Input example:
Here is a set of inputs. For example:
```in
one
```
###Output example:
The corresponding output is given here. For example:
```out
circumference=6.2832
area=3.1416
```







answer:If there is no answer, please comment