Sunday, 22 October 2017

Jump Statement:Break,Go To and Continue statement

JUMP STATEMENTS Jump statements are used to interrupt the normal flow of the program or you can say that the jump statements are used to jump a particular statement or piece of code. Types of jump statements:- Break Continue  GoTo BREAK STATEMENT:- The break statement is used inside the loop or switch case.It is used to come out from the loop or switch case.When we use break statement...

Friday, 20 October 2017

Do While Loop

DO... WHILE LOOP       Do... while is another type of looping.It is quite different from the for loop but similar to the while loop with one important difference. In do... while loop initialization at the top of the loop, update condition inside the loop and test condition at bottom of the loop.The body of do..while loop is executed once, Before checking...

Saturday, 14 October 2017

While Loop

WHILE LOOP while studying for loop we have seen that all the three parts of the loop are present in a line but in while loop, there is a difference in the syntax.In while loop, we initialize the loop outside the loop then test condition where the loop is defined and update condition in the body of the loop. syntax:- initialization expression; while (test_expression) { // statements ...

Tuesday, 10 October 2017