Sunday, October 3, 2010

write a program to accept two number and find the remainder on dividing them

#include
#include
void main()
{
int a,b,c;
clrscr();
printf("\n\t Enter the  any two number\t:\t");
scanf("%d%d",&a,&b);
// equation of remainder in c-convertion


c=a%b;
printf("\n\t the remainder on dividing them\t:\t%d",c);
getch();
}

No comments: