because there might be some instances in your application where you need to run the loop more than once. but if you need it to run at least once, then this is the loop you would use.
@YukkaProd11 жыл бұрын
it's because it's there if needed in future. for example it could contain a boolean which when it is = to false it only runs once and exits the loop but if the boolean is = to true then it doesn't exit and continues to run.
@sleepyhead739112 жыл бұрын
im not an expert programmer but based on my understanding, in the C programming language, the main reason for using a do while loop is that it will run atleast once. so would think that you would use do loops for a similar reason in visual basic
@XenoContact11 жыл бұрын
Well, In a console application, You can use it to restart your program. For example if the user types "restart" your program will restart using the loop while varibale = "restart".
@mamaduck684510 жыл бұрын
I think I missed the point on this one. Perhaps because the loop parameter or rule is 10, and num1 is also 10. I think a life example on where one might use this type of code would be helpful. Could you provide?
@RahilWazirAli12 жыл бұрын
how to apply loop on string please tell us
@PinGsamY11 жыл бұрын
how can you even apply that on loops....
@benzcheap11 жыл бұрын
Exact same thing I was wondering... find any answer yet?