Advertisement
Fahim_789

Even or Odd

May 16th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int n;
  5.     printf("Enter the number : ");
  6.     scanf("%d",&n);
  7.     if(n%2==0)
  8.         printf("even\n");
  9.     else
  10.         printf("odd\n");
  11.     return 0;
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement