Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- /**
- *
- * @author cse
- */
- public class NewInput {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // TODO code application logic here
- Scanner sc;
- sc= new Scanner(System.in);
- int n= sc.nextInt();
- System.out.println(n);
- for(int i=1; i<=n; i++)
- {
- int r= sc.nextInt();
- double area= 3.1416*r*r;
- System.out.println(area);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement