Computer Science, asked by anbpxyz, 1 year ago

write a java program to find perimeter of a circle using scanner method

Attachments:

Answers

Answered by Ankitkuniyal1907
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);
}
}


Ankitkuniyal1907: plz mark my answer as brainlist plzzzzz@zzzzzzz
anbpxyz: k.
anbpxyz: is it in scanner method?
Ankitkuniyal1907: yes
Similar questions