
Patrick B. answered 03/21/20
Math and computer tutor/teacher
using namespace std;
#include <iostream>
int main()
{
long userNum;
long x;
cout << " Input the # :>";
cin >> userNum;
cout << " Input the divisor x :>";
cin >> x;
if (x!=0)
{
long quotient;
for (int iLoop=0; iLoop<4; iLoop++)
{
quotient= userNum/x;
userNum = quotient;
cout << quotient << endl;
}
}
else
{
cout << "NO" << endl;
}
}