Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <thread>
- #include <chrono>
- using namespace std;
- int main()
- {
- for(int i = 1; i < 11; ++i)
- {
- this_thread::sleep_for(i*50ms);
- cout<<i<<" " << flush; // This line
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment