Write a program to determine whether the entered two- digit number is divisible by 3 or not.
Answers
Answered by
0
Answer:
Explanation:
#include<stdio.h>
int main()
{
int num;
printf("Enter a number: ");
scanf("%d"&num);
if(num%3==0)
{
printf("%d is divisible by 3",num);
}
else
{
printf("%d is not divisible by 3",num);
}
return 0;
}
Similar questions