write a Java program to accept the radius of a circle. Print the circumference and area of a circle. ( cirum = 2πr, area = πr^2)
Share
write a Java program to accept the radius of a circle. Print the circumference and area of a circle. ( cirum = 2πr, area = πr^2)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
Step 1: Start Step 2: input r Step 3: let pi = 3.14 Step 4: area = pi * r * r Step 5: circum = 2 * pi * r Step 6: print area, circum , Step 7: stop:
Explanation: