Advertisement
samrina_sarkar_7

Divisible by 5 and 10 or not

Jun 20th, 2019
92
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 num;
  5.   printf("Enter a number");
  6.   scanf("%d",&num);
  7.   if(num%5==0&&num%10==0)
  8.   {
  9.       printf("The number is divisible by 5 and 10");
  10.   }
  11.  
  12.  
  13.   else
  14.   {
  15.       printf("The number is not divisible by 5 and 10");
  16.   }
  17.   return 0;
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement