Advertisement
zfhridoy47

problem_4

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