Advertisement
Guest User

Lily

a guest
Sep 15th, 2019
136
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.  int main()
  3.  {
  4.      int a;
  5.      scanf("%d",&a);
  6.      if (a==0)
  7.         {printf ("This is %d.It is Zero\n",a);}
  8.  
  9.     else if (a%2==0){
  10.         printf("This is %d .It is even Number",a);
  11.  
  12.      }
  13.      else if(a%2==1){
  14.         printf ( " This is %d .It is odd Number");
  15.      }
  16.  
  17.      return 0;
  18.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement