Get 50% OFF on AI & Full Stack Courses
📞 Call Now: +91 8448811320
Home › Community › WAC to check whether a no. is multiple of 3 or 7

WAC to check whether a no. is multiple of 3 or 7

Soham  •  Jul 17, 2026  •  40 views
0

1 Answers

Soham
Jul 17, 2026
#include <stdio.h>

int main()
{
int num;

printf("Enter a number: ");
scanf("%d", &num);

if (num % 3 == 0 || num % 7 == 0)
{
printf("%d is a multiple of 3 or 7.", num);
}
else
{
printf("%d is not a multiple of 3 or 7.", num);
}

return 0;
}

Your Answer

Will not be displayed publicly
Talk to Advisor Online now
1