vencinachev

Loop1

Feb 20th, 2021
731
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int broi = 0;
  8.     int s = 10;
  9.     int j = 5;
  10.     while (j >= 1)
  11.     {
  12.         broi++;
  13.         s = s + 10;
  14.         j = j - 1;
  15.     }
  16.     cout << "s = " << s << endl;
  17.     cout << "j = " << j << endl;
  18.     cout << "Broi = " << broi << endl;
  19.     return 0;
  20. }
  21.  
RAW Paste Data