Facebook

while loop

while loop

While loop¬†keeps on executing the given statements as long as the condition is true.When the condition ¬†turns out to be false then set of statements in the block never gets executed and the control goes to first line after the while block. Syntax while(condition) { set_of_statements; iteration statement; } If the condition is true,then set… read more »

Sidebar