Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {int c,pom;
- printf("Podaj liczbe calkowita");
- scanf("%d",&c);
- pom=c%2;
- switch(pom){
- case 1: printf("liczba %d jest nieparzysta",c);break;
- case 0: printf("liczba %d jest parzysta",c);break;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement