Code:
#include <iostream>
#include <string>
#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
void goTo (int x, int y){
HANDLE hConsole= GetStdHandle(STD_OUTPUT_HANDLE);
COORD pos;
pos. X=x;
pos. Y=y;
SetConsoleCursorPosition(hConsole, pos);
}
using namespace std;