0

Why is the output of this code 246 when the condition is i<=5. Can someone explain

https://code.sololearn.com/c6FbJ4NEcH6o/?ref=app

12th Jul 2020, 12:36 PM
Emmanuel Abraham
3 Antworten
0
The output is 246 because you are using print. If you use println then output will be 2 4 6 The number is not actually 246 It is 2,4,6
12th Jul 2020, 2:15 PM
SHIVANSH
SHIVANSH - avatar