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();
}
Output :
Enter the No : 5
No.is Divisible by 5

Follow us