vstoyanov

22 задача

Mar 30th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1.  
  2. import com.sun.xml.internal.bind.v2.runtime.reflect.opt.Const;
  3.  
  4. import java.util.Scanner;
  5.  
  6. public class Main {
  7.  
  8.     public static void main(String[] args) {
  9.  
  10.  
  11.         Scanner scanner =new Scanner(System.in);
  12.  
  13.           double radius = Double.parseDouble(scanner.nextLine());
  14.  
  15.        double result=Math.PI*2*radius;
  16.  
  17.         System.out.println(result);
  18.  
  19.  
  20.  
  21.  
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment