thanks for help!
Last edited on
The easiest way would be to record "biggestN1" and "biggestN2" the same way you're recording "biggestProduct".
I don't see how that's possible?
It's literally no different from what you're already doing.
- Create a biggestN1 variable (exactly the same as how you're creating biggestProduct)
- Assign biggestN1 to be n1 when you find the biggest product (exactly the same as how you're assigning biggestProduct)
- Print biggestN1 to the user when you're done searching (exactly the same as how you're printing biggestProduct)