#include <iostream>
using namespace std;
int main() {
int numerator, denominator, quotient;
cout << "Input the number you would like to divide: ";
cin >> numerator;
cout << "Input the number you would like to divide " << numerator << " by: ";
cin >> denominator;
int remainder = numerator;
for (quotient = 1; remainder >= denominator; quotient++) {
remainder -= denominator;
}
cout << numerator << " divided by " << denominator << " equals " << quotient;
if (remainder) {
cout << " with a remainder of " << remainder;
}
cout << "." << endl;
}