Displaying Source Code(s)
|
|
find the reminder without using reminder
--------------------------------------------------------------------------------
Description : find the reminder without using reminder
#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();
}
|
|
|