Nabil-Ahmed

Untitled

Jun 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. /*check whether a number is divisible by 5 and 10 or not*/
  2. #include<stdio.h>
  3. int main()
  4. {
  5.     int a;
  6.     printf("Enter any number:");
  7.     scanf("%d",&a);
  8.     if((a %5 == 0 && a %10 == 0))
  9.         printf("The number is divisible by 5 and 10:%d",a);
  10.     else
  11.         printf("The number is not divisible by 5 and 10:%d",a);
  12.     return 0;
  13. }
Add Comment
Please, Sign In to add comment