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