Computer Science, asked by pearl1030, 1 year ago

write a java program to find the circumference of a circle....

Answers

Answered by herilchahwala
14

import java.util.Scanner;

public class Area

{

public static void main(String[ ] args)

{

int r;

double pi = 3.14, area;

Scanner s = new Scanner(System.in);

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

r = s.nextInt();

area = pi * r * r;

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

}

}

Hope it will help you.

Please mark it as brainliest!!

Similar questions