Advertisement
Josif_tepe

Untitled

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