Java while loop is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition.
Syntax
while (condition) {
// code block to be executed
}
Counter Controlled Loop:
When we know how many times loop body will be executed known as Counter Controlled Loop.
for example - print natural numbers from 1 to 100, such kind of problem will be solved using counter controlled loop.
Sentinel Controlled Loop:
When we don’t know exactly know how many times loop body will be executed known as Sentinel Controlled Loop.
for example - Reverse a given number, such kind of problem will be solved using sentinel controlled loop.
En esta página del sitio puede ver el video en línea Part-4 | While Loop in JAVA | Counter & Sentinal Controlled Loop in JAVA | தமிழ் de Duración hora minuto segunda en buena calidad , que subió el usuario Programming Inspire 19 junio 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 112 veces y le gustó 4 a los espectadores. Disfruta viendo!