#Could someone explain this to me? I haven't learned the concept yet. Thanks!
14 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @warm slate! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
if x is 3 and y is 2, what is sum?
5?
x + y = z
if x = 3 and y = 2
(3) + (2) = z
z = 5
Therefore, the sum is 5.
I do not think that is the problem that the picture is implying…
Just think of the logical outcome or possible complication of the code if different values were given, then consider the choices given…
my follow up would've been: then what is the average?
it's asking why about a logic error. the code itself runs fine.
if the sum is odd however, you aren't going to get the expected result
This alone would show you the answer to your question already, Nostiisx.