Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class SphereArea {
- public static void main(String[] args) {
- Scanner console = new Scanner(System.in);
- double radius = Double.parseDouble(console.nextLine());
- double area = (Math.PI * 4) * (Math.pow(radius, 2));
- System.out.printf("%.0f", area);
- }
- }
Add Comment
Please, Sign In to add comment