• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

do...while() statement question

 
zheng li
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

why while(w < 1) can be put directly after do?
what else can be put there?
 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is how the program actually works

Remember, that while in a do-while is followed by a semicolon...
 
zheng li
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic