RedPanda-CPP/windows/templates/CL_Turtle_cpp.txt

24 lines
311 B
Plaintext

#include <turtle.h>
#include <stdio.h>
int main() {
int n;
initWorld(800,600);
setSpeed(1000);
//setImmediate(1);
//init_console();
//show_console();
//printf("test output\n");
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;
}