Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. main()
  4. {
  5.     int n, i;
  6.     scanf("%d", &n);
  7.  
  8.     for(i = 0; n > 0; i++)
  9.     {
  10.         if(n%2 == 0)
  11.         {
  12.         n /= 10;
  13.         printf("%d\n", n);
  14.         }
  15.     }
  16.     if(n == 0)
  17.         printf("liczba zawiera wylacznie liczby parzyste");
  18.     else
  19.         printf("liczba zawiera rowniez liczby nieparzyste");
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement