Hello...
I am writing a C++ program that needs to code division with remainders. My current code does not work.
//Division
if (num2==0)
do {num2 = rand() % 10;
cout<<"new number "<<num2<<endl;} //get another number
while (num2 == 0);
cout << "(10) ";
cout<<num1 << " / " << num2 <<" = ";
cin >> userInput;
answer=num1/num2
Any ideas?