← Back to User Input
Question 198
Circle Measurements
Circle Measurements
Ask for the radius of a circle with the prompt Radius? (space after the question mark), convert it with float(), and using the given pi print two lines with two decimals each via :0.2f: Circumference: <2 times pi times the radius> and Area: <pi times the radius squared>. Input: one line, a number. The prompt is part of the output and input() stays on the same line, so the prompt and the Circumference line share the first output line, as shown in Expected Output.
Expected Output:
Radius? Circumference: 6.28 Area: 3.14
= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
User Input
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.