Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2. main()
  3. {
  4. char n[n];
  5. printf("Entre com um numero: ");
  6. scanf("%d", &n);
  7. n /= 10;
  8. n /= 10;
  9. n %= 10;
  10. if(!(n%2))
  11. printf("O numero da centena e par");
  12. else
  13. printf("O numero da centena e impar");
  14.  
  15.  
  16.  
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement