Advertisement
Guest User

Divisible

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