Discussions Q&R
exception <3
-1 Vote
1 RéponsePls help <3
0 Vote
1 RéponseMy First Blog <3
5 Votes
5 RéponsesNEED YOUR KIND HELP <3
0 Vote
1 RéponseI love Ruby 😄
6 Votes
8 RéponsesWhy isn't there Lua
0 Vote
1 RéponseAppreciation To Sololearn
3 Votes
5 RéponsesPls help me with this
8 Votes
2 Réponsesx = 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 Vote
2 RéponsesAujourd'hui en vedette
What is a web browser intension?
1 Votes
Mentors
1 Votes
Percobaan
0 Votes
Thread local : global vs local
0 Votes
Postgrrsql and python
0 Votes
python
0 Votes
Data Analysis Course
1 Votes
Codding lern
0 Votes
Is there LUA?
0 Votes