program in C that checks whether the given input is divisible by either 2 or 3.
Answers
Answered by
1
#inclue<stdio.h>
int main()
{
int num;
printf("Enter The number: ");
scanf("%d", &num);
if (num%2== 0 || num%3==0)
{
printf("The number is either divisilbe by 2 or 3");
}
else
{
printf("The Number is not divisilbe by 2 or 3");
}
return 0
}
Similar questions