/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>
#ifdef _WIN32
#include <conio.h>
#else
#define clrscr() printf("%c[2J",0x1B)
#define gotoxy(x,y) printf("%c[%d;%dH",0x1B,x,y)
#endif

int main()
{
   int i;
   clrscr();
   for(i=0;i<20;i++)
   {
      gotoxy(i,i);
      printf("*");
   }
   printf("\n");
   return 0;
}
 
