- Back to Home »
- GENERAL OR BASIC PROGRAMS »
- Program to find the reminder without using reminder in C
Posted by : ANIMESH SHAW
Wednesday, 2 May 2012
#include <stdio.h>
#include <conio.h>
main()
{
int a,b;
clrscr();
printf("enter the value of a=");
scanf("%d",&a);
printf("enter the value of b=");
scanf("%d",&b);
while(a-b>=b)
{
a=a-b;
}
printf("the reminder is =%d",a-b);
getch();
}

Post a Comment