a java program to input the radius of a circle and to find its perimeter
Answers
Answered by
2
import java.util.*;
class radius
{
public static void main(String args[])
{
Scanner sn= new Scanner(System.in);
System.out.println("Enter Radius");
double r=sn.nextDouble();
double circumferenc=2*3.14*r;
System.out.println("Circumftence is:"+circumferenc);
}
}
Similar questions