C Program to find the reminder without using reminder

C Program to find the reminder without using reminder.


[c]

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

}

[/c]

Share

About the Author

Akash Padhiyar

Visit Website

There are no comments yet, add one below.

Leave a Comment

Your email address will not be published. Required fields are marked *

*

Time limit is exhausted. Please reload CAPTCHA.