write a program to compute the circumference of circle using the scanner class
Answers
Answered by
5
Answer:
import java.util.*;
class Circumference
{
static void main()
{
Scanner sc= new Scanner(System.in) ;
System.out.print("Enter the Radius: ") ;
double rad=sc.nextDouble() ;
double c= 2* rad * Math.PI;
System.out.println("The circumference of the circle is: " + c) ;
}
}
Explanation:
Hope it helps you..Please mark this answer as the brainliest.
10 thanks + follow = inbox ✌✌
Similar questions