Advertisement
Josif_tepe

Untitled

May 7th, 2021
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main() {
  5.     int A, B;
  6.     scanf("%d%d", &A, &B);
  7.     int brojac = A;
  8.     while(brojac <= B) {
  9.         if(brojac % 2 == 0) {
  10.             printf("%d ", brojac);
  11.         }
  12.        
  13.         brojac++;
  14.     }
  15.    
  16.    
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement