Advertisement
Kawsar_Hossain

problem_4

Jun 29th, 2019
104
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. int divisible(int a)
  3. {
  4.     return (a%5==0 && a%11==0);
  5. }
  6. int main()
  7. {
  8.     int a;
  9.     scanf("%d", &a);
  10.     if(divisible(a))
  11.         printf("Divisible by 5 and 11");
  12.     else
  13.         printf("Not divisible by 5 and 11");
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement