Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.gmail.mykhalskiyv;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- Scanner sc = new Scanner(System.in);
- System.out.println("Please enter a circle Radius: ");
- int r = sc.nextInt();
- double l = 2*Math.PI*r;
- System.out.println("The length of circle with radius R ="+r+" is l = "+l);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement