Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- main()
- {
- int n, i;
- scanf("%d", &n);
- for(i = 0; n > 0; i++)
- {
- if(n%2 == 0)
- {
- n /= 10;
- printf("%d\n", n);
- }
- }
- if(n == 0)
- printf("liczba zawiera wylacznie liczby parzyste");
- else
- printf("liczba zawiera rowniez liczby nieparzyste");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement