Advertisement
dzieciol

Labolatorium II zadanie 7

Oct 29th, 2015
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {int c,pom;
  6.     printf("Podaj liczbe calkowita");
  7.     scanf("%d",&c);
  8.     pom=c%2;
  9.     switch(pom){
  10.     case 1: printf("liczba %d jest nieparzysta",c);break;
  11.     case 0: printf("liczba %d jest parzysta",c);break;
  12.     }
  13.  
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement