#include <iostream.h>
#include <conio.h>
void main()
{
int div, dis, q , r;
cout<< "Enter dividend & divisor :";
cin >> div >> dis;
q = div / dis;
r = div % dis;
cout << " Quotient = " << q;
cout << "Remainder = " << r;
getch();
}
No comments:
Post a Comment