Circle
Enter the real number as the radius R of a circle. calcule circumference and the area of that circle with the precision of 2 digits after the decimal point, in case R <0, print " NO CIRCLE ”.
Input:
A line of a real number R
Output:
Either 1 result "NO CIRCLE" or two lines corresponding to the circumference, the area of the circle is rounded to 2 digits after the decimal point.
Example 1:
Input:
-3.5
Output:
NO CIRCLE
Example 2:
Input:
3.0
Output:
18.85
28.27
Comments
include<stdio.h>
include<iostream>
using namespace std;
int main(){
}
include<iostream>
using namespace std;
int main()
{
}