Computer Science, asked by lakshsingh140, 3 months ago

Write a java program to find the area of a circle . (A=3.14*r*r)

Answers

Answered by rajeevnain165
0

Answer:

Java Program to Calculate and Display Area of a Circle

public class Area.

int r;

double pi = 3.14, area;

Scanner s = new Scanner(System.

System. out. print("Enter radius of circle:");

r = s. nextInt();

area = pi * r * r;

System. out. println("Area of circle:"+area)

Similar questions