Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Circumference {
- public static void main(String[] args) {
- Scanner reader = new Scanner(System.in);
- int radius;
- double circumference;
- System.out.print("Type the radius: ");
- radius = reader.nextInt();
- circumference = 2 * Math.PI * radius;
- System.out.println("\nCircumference of the cirle: ");
- System.out.println(circumference);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement