I think that everybody knows what while means, right?
Imagine you want to do something for a 'while' :)
You're gonna need to repeat that thing for a number of times; limited or unlimited. For example, if you wanted to do something from your daily life like drinking water 7 times each day you're going to do a task (i.e process) for seven times and you're going to decrease that number each time you drink water. Before you start drinking, the number of times would be seven. So, a condition to check to stop drinking would be great. Like when the number of times is less than seven -> continue doing this process (drinking water) and increasing the number of times you have drank by one. Once the number of times reaches seven -> stop this process.
Hope that helped clear the picture even if it was a little bit.
Imagine you want to do something for a 'while' :)
You're gonna need to repeat that thing for a number of times; limited or unlimited. For example, if you wanted to do something from your daily life like drinking water 7 times each day you're going to do a task (i.e process) for seven times and you're going to decrease that number each time you drink water. Before you start drinking, the number of times would be seven. So, a condition to check to stop drinking would be great. Like when the number of times is less than seven -> continue doing this process (drinking water) and increasing the number of times you have drank by one. Once the number of times reaches seven -> stop this process.
Hope that helped clear the picture even if it was a little bit.
Comments
Post a Comment