Advertisement
Josif_tepe

Untitled

May 22nd, 2024
534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int a, b, s;
  7.     a = 3; s = 0;
  8.     do
  9.     {
  10.         s = s + a;
  11.         a++;
  12.     } while(a < 3);
  13.     cout << s << endl;
  14.  
  15.  
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement