Math, asked by arshabhsingh53, 7 months ago

Write a program to input radius of circle and print area of circle.​

Answers

Answered by ayasmitamanna146
1

Step-by-step explanation:

import java.util.*

public class circle

{

public static void main(String[]args)

Scanner sc=new Scanner(System.in);

double r , p , a ;

{

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

{

r=in.nextInt();

p=22/7;

a=(p*r*r);

{

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

}

}

}

}

}

Similar questions