c program write a program to check the number divisible by 5 or not


Example

#include<stdio.h>
void main()
{
    int a;
    clrscr();
    printf ("Enter the no.");
    scanf("%d",&a);
    if(a%5==0)
    {
        printf("No.is Divisible by 5");
    }
    else
        {
        printf("No is not Divisible by 5");
        }
    getch();
}
                                


Output

Enter the no. 25
No. is Divisible by 5