Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. package tasks;
  2.  
  3. import java.util.Scanner;
  4.  
  5. /**
  6. * Created by Admin on 23.04.2017.
  7. */
  8. public class lengthCircle {
  9. public static void main(String[] args) {
  10. Scanner sc = new Scanner(System.in);
  11. System.out.print("Please, input radius: ");
  12. double r = sc.nextDouble();
  13. double l = Math.PI * Math.pow(r, 2);
  14. System.out.println(l);
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement