DIVISIBLE BY 2 OR 3 in C

Image result for c programming

DIVISIBLE BY 2 OR 3 in C
Code:

   #include<stdio.h>
int main(){
  int a;
  scanf("%d",&a);
  if((a%2==0)||(a%3==0))
  printf("yes");
  else
  printf("no");
  return 0;
}

No comments