Добавил выбор между рандомной генерацией и файлом в 6м задании
This commit is contained in:
parent
7e7ec0e12c
commit
610ed3990a
4 changed files with 95 additions and 19 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue