Advertisement
Josif_tepe

Untitled

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