#include <iostream>
using namespace std;
int main()
{
int dividend, divisor, quotient, remainder;
while(1)
{
cout << "\tPlease, enter dividend and divisor!" << endl << "Dividend : ";
cin >> dividend;
cout << "Divisor : ";
cin >> divisor;
quotient = dividend/divisor;
remainder = dividend%divisor;
cout << "Quotient = " << quotient << "\tRemainder = " << remainder << endl;
}
}
Comments
Leave a comment