write a program to input radius of circle and calculate and print perimeter and area of circle. please Bhai koi jaldi batao
Answers
Answered by
8
Answer:
import java. util. *;
class radius
{
void main()
{
Scanner so = new Scanner(System.in) ;
System.out.println("enter the radius of the circle") ;
double a= so. nextDouble() ;
double pi = 3.14;
double c=2*pi*a;
double d=pi*a*a;
System.out.println("perimeter="+c+"area"+d) ;
}
}
Similar questions