• Follow Us

Divisible by 3 and 7 program in C

#include<stdio.h>

int main()
{
int n;
printf(“Enter the Balloon’s number:\n”);
scanf(“%d”,&n);
if(n%3==0&&n%7==0)
printf(“YES.”);
else
printf(“NO.”);
return 0;

}

Leave a Reply

Your email address will not be published. Required fields are marked *

Shopping cart