Home C DIVISIBLE BY 2 OR 3 in C DIVISIBLE BY 2 OR 3 in C / July 21, 2017 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