HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50974 - Area of the circle

Section problems

• 50963 - Append Two Arrays
• 50968 - Number of Letters
• 50969 - Chef and Feedback
• 50888 - Extracting Digits
• 50893 - Print All Numbers
• 51109 - Integer to English
• 50905 - Convert KPH to MPH
• 50962 - Find the Character
• 50974 - Area of the circle
• 51110 - The area of a circle
• 50967 - Finding Square Roots
• 50953 - ASCII Codes - Reverse
• 50960 - Number of Heart Beats
• 50885 - Calculate the Average
• 51108 - First Unique Character
• 50887 - Average of Test Scores
• 50904 - Print All Prime Numbers

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

Area of the circle

Question: Write a program to calculate the area of a circle.

Input: In the first line, you will get a positive number as an indicator of radius of the circle.

Output: the area of the circle.

Note: The value of pi number is 3.14. The formula to calculate the area of a circle is π * r2
(π=pi number, r=radius)

Sample Input1:
5
Sample Input2:
1
Sample Output1:
78.5
Sample Output2:
3.14
Для отправки решений необходимо выполнить вход.

www.contester.ru