For an assignment, I had to write a program in which it has to do the following:
Ask a student for the answer to 10 random arithmetic problems consisting of addition and subtraction using integers from 1 to 10 only. Pick two random integers from 1 to 10 and assign to num1 and num2 and pick a random integer 0 and 1 for the the operation OP. If OP is 0 it is addition, 1 is subtraction. If it is a subtraction you must make sure that the first number Num1 is bigger than the second number Num2. If it is not then swap the numbers by calling a function Swap that you will define. Each correct problem is awarded 10 points. Display the total score at the end of the problems.
I have written most of the code, but I'm not sure I'm doing it right and I need assistance/tips on how to finish the program since I've been having a bit of trouble doing so.
Hello, I have fixed my code, but I'm having trouble fixing my program so that it can loop around 10 times like it should. This is what I have been able to fix according to what you told me: