Hi, I was testing to see if there is any difference when declaring GuessSum and GuessProduct before or after the cin operation, turns out…it does give two different outcome
Declare before cin operation, value churned out is random and numbers are incorrectly huge
Declare after cin operation, value of sum and product generated are correct
Can anyone explain the logic behind this? Thanks.