+ 1
Take a good close look at line 21. Your condition is setting the value to 1 not checking if it is less than or equal to 1. Also, the method calls are spelt incorrectly, each is missing the plural 's' at the end of the method names. After fixing these, the program will compile and run, but result in an incorrect output. Which, you'll also need to look into (hint: line 37).
21st Feb 2022, 3:34 AM
ChaoticDawg - avatar