write a java program to find perimeter of a circle using scanner method
Attachments:
Answers
Answered by
8
import java.util.*;
class perimeter
{
public static void main()
{
Scanner sc= new Scanner(System.in);
System. out. println("Enter radius of circle");
int r=sc.nextInt();
int p=2*3.14*r;
System. out. println(" Perimeter ="+p);
}
}
class perimeter
{
public static void main()
{
Scanner sc= new Scanner(System.in);
System. out. println("Enter radius of circle");
int r=sc.nextInt();
int p=2*3.14*r;
System. out. println(" Perimeter ="+p);
}
}
Ankitkuniyal1907:
plz mark my answer as brainlist plzzzzz@zzzzzzz
Similar questions