Advertisement
Guest User

Divisible by 2

a guest
Jul 25th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int number;
  5.     printf("Enter the value of number==");
  6.     scanf("%d",&number);
  7.     if(number%2==0){
  8.         printf("number is divisible by 2\n");
  9.     }
  10.     else{
  11.         printf("number is not divisible by 2\n");
  12.     }
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement