Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <ctime>
- #include <cstdlib>
- #include <iomanip>
- #include <windows.h>
- int main()
- {
- int g = 1;
- srand (time(NULL));
- int enter = 0;
- std::cout << " ";
- while (g == 1)
- {
- std::cout << "z";
- Sleep(100);
- enter = rand() % 7 + 1;
- if (enter == 3)
- {
- std::cout << std::endl << " ";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement