Advertisement
ismail5g

check

Apr 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include<stdio.h>
  2. void check(int n){
  3.     if(n%2==0)
  4.         printf("%d is Even.\n", n);
  5.     else
  6.         printf("%d is Odd.\n", n);
  7. }
  8. void myname(){
  9.     printf("My name is Abdullah.\n");
  10. }
  11. int main()
  12. {
  13.     int m;
  14.     printf("Enter a number: ");
  15.     scanf("%d", &m);
  16.     check(m);
  17.     myname();
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement