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

Q&A Discussions

hi, me newbie, started last day, right now I wrote a code using "do", the out is 2,4,6, while condition is <5. why or how output is exceeding 5. thanx in advance int a=2; do { cout<<a <<endl; a+=2; } while (a <5);
c++
0 Votes
5 Answers
25th Jun 2016, 5:38 PM
Abdullah
Abdullah - avatar
Hot today
HTML
3 Votes
Functions in python
2 Votes
Answer please
0 Votes
For Mobile app
0 Votes
How can you find whether a number is odd or even in a different way(other than (x%2==0))?
1 Votes
I need advice
0 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
I need advice
0 Votes
Html 5 document question
1 Votes
Why this code fails even without data race
0 Votes