Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6 #626

Open
edshamr opened this issue Oct 5, 2024 · 0 comments
Open

#6 #626

edshamr opened this issue Oct 5, 2024 · 0 comments

Comments

@edshamr
Copy link

edshamr commented Oct 5, 2024

Создай класс Circle, который будет иметь поле radius (радиус круга). Напиши методы для:

Вычисления площади круга (calculateArea()),
Вычисления длины окружности (calculateCircumference()).

Подсказка:
Площадь круга: π * radius * radius,
длина окружности: 2 * π * radius.
Используй Math.PI для значения π.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant