Do while loop — what are they?

Why do we use these and what are they? They are loops that run while a condition exists

A real example is to have it run a condition like adding apples while the apples are less or not equal to another value.

ALWAYS BE SURE TO ADD AN INCREMENT OTHERWISE YOU WILL GET A INFINITE LOOP!

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Al Heck

Unity Developer and Software Engineer who loves making games with GameDevHQ