Samiul_Islam_Abir

10

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