Computer Science, asked by sk8248276, 6 months ago

program in C that checks whether the given input is divisible by either 2 or 3.

Answers

Answered by peeyush321kumar
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