important | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

important

should remember to use it when giving x the wanted first value -1 . if u want to start from 1 give it a 0.

4th May 2017, 2:08 PM
Elana Mendelson
Elana Mendelson - avatar
3 Answers
+ 8
@Elana Use a foreach loop, with an array of the numbers that you want to print.
4th May 2017, 2:51 PM
Manual
Manual - avatar
+ 1
what u talkin
4th May 2017, 2:13 PM
Sammi
Sammi - avatar
+ 1
it's not a question haha. if u want to print 1-6 u should make the initial num 0. because it adds up before its printed
4th May 2017, 2:15 PM
Elana Mendelson
Elana Mendelson - avatar