Sesiones de PyR
Why it’s 70 and not 69?
2 Votos
6 RespuestasWhat is my mistake?
0 Votos
1 RespuestaОшибка
0 Votos
1 RespuestaC++
1 Voto
5 Respuestasx = 42;
int num = 0;
while (num <3)
Consele.writeline (x);
num++;
int x = 42; is just an int with an asigned value of 42
int num=0; is what initiate the count for the while loop
while (num < 3); means 0<3 true, 1< 3 true, 2<3 true, the loop end at 2 bc 3 <3 is false
consele.writeline (x) will display 42 while num < 3
num++ will execute and then add 1 to check if the while loop still true, but it stop at 2, bc 3 makes it false.
so the consele.write will write 42 three times. x=42, remember the (x)
0 Votos
2 Respuestasneed help plz
0 Votos
2 RespuestasMethod in python
0 Votos
2 RespuestasIsometric Coordinates
4 Votos
9 RespuestasEn tendencia hoy
What's wrong in my code?
4 Votes
App Development
1 Votes
GUI-Based Python code in Webpage
3 Votes
My Missing Courses
1 Votes
Are '\0' and NULL the same?
1 Votes
cyber security
0 Votes
career in cybersecurity
0 Votes
Number addition
0 Votes