Write a Java program to find the circumference of a circle whose radius is 1.7. [Hint: c=2πr]
Answers
Answered by
0
Explanation:
Java programming
for finding circumference
import java.util.Scanner;
public class CircumfrenceOfCircle {
public static void main(String args[]){
int radius;
double circumference;
Scanner sc = new Scanner(System.in);
System.out.println("Enter the radius of the circle ::");
radius = sc.nextInt();
circumference = Math.PI*2*radius;
System.out.println("Circumference of the circle is ::"+circumference);
}
- like this you put your value and find the circumference
Similar questions