2
Reply

Perfect Example Of While And Do-While Loop In C#.Net ?

Maruthi Palllamalli

Maruthi Palllamalli

Dec 09, 2015
1.7k
0

    while loop check first condition if it is satisfied then it will run further. Do-while loop initially skip first time condition check and start running but very second time it will check condition and start running.

    Keshav Chauhan
    December 26, 2016
    1

    sqlconnection con=new sqlconnection(@connectionstring);int i=0; while(connection is open) { i++; } it is increment and check condition.int i=0; do { i++; }while(connection is open)

    Maruthi Palllamalli
    December 09, 2015
    1