/*Program to check whether the number is divisible by 5 or not.*/
#include<stdio.h>
int main()
{
int num;
printf("Enter the number you want to check: ");
scanf("%d",&num);
if(num%5==0)
{
printf("%d is divisible by 5",num);
}
else
{
printf("%d is not divisible by 5",num);
}
return 0;
}
OUTPUT:

No comments:
Post a Comment
If you have any doubt, please ask in the comment section.