#Z12204. 与圆相关的计算

与圆相关的计算

Description

Given the radius of a circle, calculate its diameter, circumference, and area.
Input a real number r representing the radius of the circle, and output the diameter, circumference, and area, each rounded to 4 decimal places. The value of π should be taken as 3.14159.

Input Format

The input consists of a single real number r (0 < r ≤ 10,000), representing the radius of the circle.

Output Format

Output one line containing three numbers: the diameter, circumference, and area of the circle, separated by spaces. Each number should be rounded to 4 decimal places.

Example Code (Python)

import math

r = float(input())
pi = 3.14159
diameter = 2 * r
circumference = 2 * pi * r
area = pi * r ** 2

print(f"{diameter:.4f} {circumference:.4f} {area:.4f}")
3.0

6.0000 18.8495 28.2743