+ 2
How do you include the number you stated.
6 Answers
+ 2
Yes, in that case, the for loop executes as long as a is smaller or equal to x
+ 2
Oh
+ 2
Why i didnt gave a thought of that
+ 2
Thanks everybody
+ 1
Sorry I didn't understand you question, could you explain so I can help?
+ 1
woo Zhi in the for loop you have
"a < x"
if you want to include the inputted number you need to write "a <= x" đ