I tried making a numerator = number1*number2 and then doing numerator div number2 to check the answers but was getting weird results (probably division problem).
What is 6 / 2 = 3Correct!What is 25 / 5 = 5Correct!What is 21 / 3 = 7Correct!What is 10 * 6 = 60Correct!What is 7 + 4 = 11Correct!What is 8 - 10 = -2Correct!What is 4 - 6 = 9Incorrect! Correct result is: -2What is 4 + 3 = 8Incorrect! Correct result is: 7What is 18 / 1 = 5Incorrect! Correct result is: 18
while not (a mod b = 0) and not (a=b) and (b<>10) do inc(a); Not really sure if that is correct?
With Fibonacci's 2nd code:I keep getting just division happening.
Alpine, are you saying while not (a mod b = 0) or (a=b) or (b=10) do inc(a);