program:
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
void gotoxy(int ,int );
int main()
{
gotoxy(10,10);
return 0;
}
void gotoxy(int x, int y)
{
static HANDLE h = NULL;
if(!h)
h = GetStdHandle(STD_OUTPUT_HANDLE);
COORD c = { x, y };
SetConsoleCursorPosition(h,c);
}
output:
Process returned 0 (0x0) execution time : 0.016 s
Press any key to continue.