by Dinesh Thakur

 

#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();
}

Check the Number Divisible by 5 or Not

Follow us