Advertisement
Josif_tepe

Untitled

Mar 29th, 2022
795
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <ctype.h>
  4.  
  5. int main() {
  6.    
  7.     int x;
  8.     scanf("%d", &x);
  9.    
  10.     for(int i = 1; i <= x; i += 1) {
  11.         if(i % 2 == 0) {
  12.             if(x % i == 0) {
  13.                 printf("%d ", i);
  14.             }
  15.         }
  16.     }
  17.    
  18.    
  19.     return 0;
  20. }
  21.  
Advertisement
RAW Paste Data Copied
Advertisement