In what concerns the continuous evaluation solving exercises grade during the semester, you should submit until 23:59 of October 19th
(this exercise will still be available for submission after that deadline, but without couting towards your grade)
[to understand the context of this problem, you should read the class #02 exercise sheet]
The mathematicians of Algorithmland have discovered a mysterious circle and need to calculate its area to unlock its secrets.
Write a program that asks for the radius T of a circle and prints its area, rounded to two decimal places. Use the value of pi as 3.14159 for your calculations.
A line containing a single floating-point number R, representing the radius of the circle.
The output should be a single line displaying the area of the circle, rounded to two decimal places.
The following limits are guaranteed in all the test cases that will be given to your program:
0 < R < 1000 | Radius of the circle |
Example Input 1 | Example Output 1 |
2.0 |
12.57 |
Example Input 2 | Example Output 2 |
3.5 |
38.48 |