Circle
Submit solution
Points:
1 (partial)
Time limit:
1.0s
Memory limit:
98M
Problem types
Allowed languages
Ada, Assembly, Awk, C, C++, C11, CLANG, CLANGX, Classical, COBOL, Coffee, CSC, D lang, DART, F95, FORTH, Fortrn, GAS32, GO, Haskell, Itercal, Java, kotlin, LEAN, LISP, LUA, MONOVB, Nasm, OCAML, Pascal, Perl, php, PIKE, prolog, Pypy, Python, Ruby 2, RUST, Scala, SCM, SED, SWIFT, TCL, TUR, V8JS, VB, ZIG
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