Добавил выбор между рандомной генерацией и файлом в 6м задании

This commit is contained in:
AZEN-SGG 2024-12-20 23:49:57 +03:00
parent 7e7ec0e12c
commit 610ed3990a
4 changed files with 95 additions and 19 deletions

View file

@ -85,6 +85,7 @@ double distance(point p1, point p2) {
}
void printCircle(circle crcl) {
printf("Center of circle at point (%.2lf, %.2lf)\nRadius is %.2lf\n", crcl.center.x, crcl.center.y, crcl.radius);
printf("(x - %.4lf)^2 + (y - %.4lf)^2 = %.4lf^2\n", crcl.center.x, crcl.center.y, crcl.radius);
// printf("Center of circle at point (%.2lf, %.2lf)\nRadius is %.2lf\n", crcl.center.x, crcl.center.y, crcl.radius);
}