C Program to find whether the given number is divisible by 3
Get a number num and check whether num is divisible by 3.
Divisible by 3
Not divisible by 3
printf("Enter a number: ");
printf("%d is divisible by 3",num);
printf("%d is not divisible by 3",num);
Get input num from user using scanf statement
check whether the remainder of num divided by 3 is equal to 0 using if statement.
if it is 0, then print num is divisible by 3 using printf statement. Else print num is not divisible by 3 using printf statement.