Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. import java.io.*;
  2. import java.math.*;
  3.  
  4. public class Main {
  5.     public static void main(String args[]) throws IOException {
  6.         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  7.         PrintWriter pw = new PrintWriter(System.out, true);
  8.  
  9.         float radius = Float.parseFloat(br.readLine());
  10.  
  11.         pw.println("S = " + Math.PI * Math.pow(radius,2));
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement