C++ Saved Program: beautiful-life

facebook share

Here's the online compiler accompanied with IDE at your service. This is a saved code by one of our users. Try it out or save your own from the IDE page and don't forget to leave a feedback. You can find that at the bottom of the page.


#include <iostream>
#include "timer.h"
int main()
{
    cout << "Hello" << endl;
    cout << "Enter the code to continue" << endl;
    cout << "You have 30 seconds" << endl;
    timer aTimer;
    aTimer.Start();
    for( int i = 1; i < 30; i++ )
    {
        std::cout << i << std::endl;
        while( aTimer.GetTicks() < 1000 );
        aTimer.Reset();
        
    }
        return 0;
}
Execute

Output

Press the execute button or CTRL + enter to run code.

Inputs