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