Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Tasks;
- import java.util.Scanner;
- public class Circle {
- public static void main(String[] args) {
- System.out.println("Введите радиус окружности 2 ");
- Scanner scanner = new Scanner(System.in);
- double radius = scanner.nextDouble();
- System.out.println("Площадь круга " + Math.PI * Math.pow(radius, 2));
- System.out.println("Длина окружности " + 2 * Math.PI * radius);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement