• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu

Q&A Discussions

x = 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)
c#loops
0 Votes
2 Answers
5th Oct 2016, 7:33 PM
DoWhile2016
so far in section 1 question 2 area all of the videos have been ads that if you skip the add it just brings up the questions you need to answer. also if you play the add all the way thru you get the same exact thing. luckily I'm using this as a refresher course but I would think if I didn't know anything about c++ then I could be pretty lost missing videos.
c++
0 Votes
2 Answers
31st Jul 2016, 5:08 PM
Anthony Cavello
Anthony Cavello - avatar
< Previous1...4445Next >
Hot today
Can I import any module in python in this app?
1 Votes
Loops and conditions
2 Votes
GitHub account connecting issue
3 Votes
Algorithm to create maze-like grid
2 Votes
photo upload issue in html code
0 Votes
app for lessons
1 Votes
Any coding competitions?
1 Votes
AlguĂ©m PortuguĂȘs por aqui?
0 Votes
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
Rise of AI
1 Votes