C Programming looping statements (part 2)
Next looping statements will continue here 2.while: While is one of the important looping statement In while, we assign at somewhere ,condition we place in while and increment or decrement at last. While and for is same but the difference is syntax functionality is same. By using while code length is increasing. Syntax: Assignment; While (condition) //Simple statements; Increment or decrement operation; While loop is simple like for loop but writing code is somewhat difficulty in means of writing three statements in a code. Example---- i=0; while(i<5) printf ("SSCprogramming"); i++; In the above code assignment is happened initially. After that while checks the condition then it moves on next statements inside the while loop Then increment happen. Output is 5 times prints SSCprogramming 3. Do-while This is reverse of while in case of checking condition. In this intialisation or assignment will be at some place befo...