Anonymous user
Towers of Hanoi: Difference between revisions
m
→{{header|C}}
m (→{{header|C}}) |
|||
Line 304:
int height;
void text(int y, int i, int d, const char *s)
{
printf("\033[%d;%dH", height - y + 1, (height + 1) * (2 * i + 1) - d);
while (d--) printf("%s", s);
}
|