Question: Java: Step 1: Ask user to input the radius r Step 2: If the value of R is 0, then print an error message Step

Java: Step 1: Ask user to input the radius r

Step 2: If the value of R is 0, then print an error message

Step 3: If user enter rec, then use rec area calculation(Assume l and w are same as R)

Step 4: If user enter circle, the use 3.14 * r* r

If you want to calculate circle, then enter 0 or 1

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 Databases Questions!