Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <locale>
- #include "windows.h"
- int main() {
- setlocale(0, "RUS");
- std::cout << "Вы гуль?\n 1. Да.\n 2. Нет." << std::endl;
- int menu, aboba = 1000;
- std::cin >> menu;
- system("cls");
- switch (menu) {
- case 1:
- while (aboba > 0) {
- std::cout << setw(25) << aboba << "- 7 = ";
- aboba -= 7;
- std::cout << aboba << std::endl;
- Sleep(40);
- }
- break;
- default:
- std::cout << "1000-7?" << std::endl;
- break;
- }
- system("pause>0");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement