#include
#include
void main()
{
int n1,n2;
clrscr();
printf("enter the values of Number1 and Number 2");
scanf("%d %d",&n1,&n2);
if(n1%n2==0)
printf("First no is divisible by second");
else
printf("Sorry !!! not divisible");
getch();
}
Program to Check whether First number is divisible by second number or not
No comments:
Post a Comment