Question: Write a program to do the following. i . Ask the user to enter a positive number n . You can assume the user will

Write a program to do the following.
i. Ask the user to enter a positive number n. You can assume the user will enter a number but it may be positive or negative.
ii. If the number is negative, display a message and ask the user to enter again to enter a positive number.
iii. If the user enters a positive number, calculate the square root of the number and display it with a suitable message. HINT: import and use the math module
iv. Print the value of pi as defined in the module Using this value, calculate the circumference and area of a circle with radius of 12 cm and display the results like photo
PYTHON!
Write a program to do the following. i . Ask the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!