Advertisement
vencinachev

Loop1

Feb 20th, 2021
991
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement