I wanna append a rectangle at the end of the pattern formed by compiling the following code, but the cursor is at the bottom right corner. Is there any way to bring the cursor back to the first line, without using any standard function.
Code:
#include<stdio.h>
void main()
{
char c,i;
c=218;
printf("%c",c);
c=196;
for(i=0;i<=2;i++)
printf("%c",c);
c=191;
printf("%c\n",c);
c=179;
printf("%c",c);
printf(" ");
printf("%c",c);
c=175;
printf("%c",c);
c=45;
printf("%c%c%c",c,c,c);
c=62;
printf("%c\n",c);
c=192;
printf("%c",c);
c=196;
for(i=0;i<=2;i++)
printf("%c",c);
c=217;
printf("%c",c);
}