Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void oddOrEven(int* a){
- if(*a % 2 == 0){
- printf("The number %d is even", *a);
- }else{
- printf("The number %d is odd", *a);
- }
- }
- int main()
- {
- int a = 6;
- oddOrEven(&a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement