0

Hey,
Was bored so *TRIED* to make this simple countdown program but i'm just not sure what to put in the for loop?

#include <iostream>
#include <windows.h>

using namespace std;

int main()
{
    int countDown;
    
    cout << "Enter a number to count down from : ";
    cin >> countDown;
    
    for(int i )
    {
            cout << i;
            Sleep(1000);
            system("cls");
    }
}

I've tried int i == countDown etc, but i don't know help please

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by hammerhead
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.