Advertisement
Josif_tepe

Untitled

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