Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n;
- printf("Enter integer to check divisible by 5 and 10 or not :\n");
- scanf("%d", &n);
- if(n % 5 == 0 && n % 10 == 0)
- printf("%d is divisible\n", n);
- else
- printf("Not divisible\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement