Computer Science, asked by shivakanthmadhu71, 4 months ago

Write a program to find the area of a circle. Area =3.14r*r
i have find some geinus here

Answers

Answered by kamalrajatjoshi94
1

Answer:

Program:-

import java.util.*;

public class Circle

{

public static void main(String args[ ])

{

Scanner in=new Scanner(System.in);

int r;

double ar=0.0;

System.out.println("Enter the radius of square");

r=in.nextInt();

ar=3.14*r*r;

System.out.println("The area of circle="+ar);

}

}

Similar questions