108k views
3 votes
Write a program to input a number and check whether it is divisible by 5 or not​

1 Answer

4 votes

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

}

User TermiT
by
8.1k points