
-----------------------------------
JR
Mon Oct 18, 2004 2:43 pm

Program gone crazy....
-----------------------------------
well sort of. the program should do addition subtraction and multiplication to 2 random numbers, and it depends on the users choice. The user gets 5 questions per choice and then if he answers them right from the first time he gets 10 points if not he has 2 more tries which he gets 5 points for the first and 2 points for the third. if the question was answered wrong he gets no points and the program moves on to the next question ouf of 5.

for starterts i got and endless loop dont know why, if i type the wrong answer in then it gives the error msg and gives u 3 tries but it gives u endless amount of questions and i only need 5. If i get the answer right the program still gives u 3 tries eventhough u got it right.... i cant exit the program when i press 4 theres an endless loop...  how to fix this stuff?


Now heres my code: Note( only try it with addtion cause i didnt do it for the other 2, gotta make addition work properly first)



//Alex R
//A5Q1
//October 5th

#include 
#include 
#include 

//menu
int menu()
{
int choice;
cout