Write a java program to input diameter of circle and find the area.
Share
Write a java program to input diameter of circle and find the area.
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:
Logic to find diameter, circumference and area of circle
Input radius of circle from user. Store it in a variable say radius. Apply the formulas to calculate diameter, circumference and area. Use diameter = 2 * radius, circumference = 2 * 3.14 * radius and area = 3.14 * radius * radius.
Explanation:
Mark me as brainliest answer