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

for(int i=countDown;i>=0;i-- )
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.