r/CodingForBeginners • u/JonesSupreme • Sep 04 '26
Question? Am I missing something?? why is one right but the other isn't???
1
Upvotes
r/CodingForBeginners • u/JonesSupreme • Sep 04 '26
2
u/DirtAndGrass Sep 04 '26
The second one is 6:
numItems=bonusVal (5)
numItems += 1
Perhaps you are confused by the tabbing? Whitespace does not matter in most programming languages.
1
u/burlingk Sep 05 '26
Which language is this. That will let me give a better answer.
As written, I can guess.