No entendí el codigo? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

No entendí el codigo?

int num = 1; while(num < 6) { Console.WriteLine(num); num+=2; }

25th Aug 2017, 1:12 AM
Felipe Linares Peredo
Felipe Linares Peredo - avatar
2 Answers
+ 3
el bucle while se repite mientras num sea menor que 6 dentro del bucle se imprime num y se incrementa en 2 Resultado : 135 y num=7
25th Aug 2017, 2:25 AM
Daniel
Daniel - avatar
+ 1
gracias
25th Aug 2017, 10:46 PM
Felipe Linares Peredo
Felipe Linares Peredo - avatar