2021-12-03 21:36:12 +08:00
|
|
|
#include <turtle.h>
|
2022-03-19 14:19:32 +08:00
|
|
|
#include <stdio.h>
|
2021-12-03 21:36:12 +08:00
|
|
|
|
|
|
|
int main() {
|
|
|
|
int n;
|
|
|
|
initWorld(800,600);
|
|
|
|
setSpeed(1000);
|
|
|
|
//setImmediate(1);
|
2022-03-19 14:19:32 +08:00
|
|
|
//init_console();
|
|
|
|
//show_console();
|
|
|
|
//printf("test output\n");
|
2021-12-03 21:36:12 +08:00
|
|
|
|
|
|
|
n=50;
|
|
|
|
for (int i=0;i<n;i++) {
|
|
|
|
for (int j=0;j<4;j++) {
|
|
|
|
fd(90);
|
|
|
|
lt(90);
|
|
|
|
}
|
|
|
|
lt(360.0/n);
|
|
|
|
}
|
|
|
|
pause();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|