I want to print each number from 1 to 10 on the cleared screen with some time between them. I tried this code:
#include <iostream>
using namespace std;
int main()
{
  for(int i = 1; i <= 10; i++)
  {
    cout << i;
    system("cls");
    for(int j = 1; j <= 10000000; j++)
        continue;
  }
  return 0;
}
But it doesn't work as intended, instead:
How to get what I actually wish?
