35657

Untitled

Jan 26th, 2024
715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1.  
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.  
  8.     setlocale(LC_ALL, "ru");
  9.  
  10.     int money = 40;
  11.     int ice = 9;
  12.  
  13.     while (money >= ice) {
  14.         money -= ice;
  15.         cout << "Ice!" << endl;
  16.     }
  17.    
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment