Advertisement
Guest User

zzz.cpp

a guest
May 25th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <ctime>
  4. #include <cstdlib>
  5. #include <iomanip>
  6. #include <windows.h>
  7.  
  8. int main()
  9. {
  10. int g = 1;
  11. srand (time(NULL));
  12. int enter = 0;
  13. std::cout << " ";
  14.  
  15. while (g == 1)
  16. {
  17. std::cout << "z";
  18. Sleep(100);
  19.  
  20. enter = rand() % 7 + 1;
  21. if (enter == 3)
  22. {
  23. std::cout << std::endl << " ";
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement