Write a program that will generate 10 math problems for a user. The numbers for the problem must be random numbers generated by the computer from 1 to 100. Next generate a number from 1 to 3. If you have a “1”, then make the problem an addition problem, “2” a subtraction problem, and “3” a multiplication problem. Display the problem and ask the person to enter the answer. Calculate the number of correct problems and print out the grade.
Aucun commentaire:
Enregistrer un commentaire