Differentiate between while loop and do-while loop.
The while and do-while loops are similar in functionality, but they differ in the point at which the condition is tested: While loop: The condition is evaluated before the loop body is executed. If the condition is false from the start, the loop body will not execute even once. Example: int i = 0; while(i … Read more