Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void paroimpar(int a);
- int main()
- {
- int x;
- printf("Ingrese un valor entero: ");
- scanf("%d",&x);
- paroimpar(x);
- return 0;
- }
- void paroimpar(int x)
- {
- if (x % 2 == 0)
- printf("\nEs par");
- else
- printf("\nEs impar");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement