DIVISIBLE BY 7 AND 3 in C programming

Image result for c programming

DIVISIBLE BY 7 AND 3 in C programming
Code:
  #include<stdio.h>
int main(){
  int a;
  scanf("%d",&a);
  if((a%3==0)&&(a%7==0))
    printf("%d is divisible by both 7 and 3",a);
  else
    printf("%d is not divisible by both 7 and 3",a);

  return 0;
}

No comments