Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void paroimpar(int a);
  4.  
  5. int main()
  6. {
  7. int x;
  8. printf("Ingrese un valor entero: ");
  9. scanf("%d",&x);
  10. paroimpar(x);
  11. return 0;
  12. }
  13.  
  14. void paroimpar(int x)
  15. {
  16.  
  17. if (x % 2 == 0)
  18. printf("\nEs par");
  19. else
  20. printf("\nEs impar");
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement