Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- void check(int n){
- if(n%2==0)
- printf("%d is Even.\n", n);
- else
- printf("%d is Odd.\n", n);
- }
- void myname(){
- printf("My name is Abdullah.\n");
- }
- int main()
- {
- int m;
- printf("Enter a number: ");
- scanf("%d", &m);
- check(m);
- myname();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement