A nested loop is just one loop within another. The most common use of this is to read from or write into a multi-dimensional array.
Example (in C-style pseudocode):
int[][] array = some...
You never want to use nested loops if you can avoid it. Each additional level of loop you add increases the work done by your program exponentially. There are certain cases where this is unavoidable,...
first be sure what u r asking?
if just u mention it as loop what shall i take is tat
for loop,do while?
while first check the condition and then start execute the comming steps.but do while ll...
The for loop is used when you want to do a procedure, a certain amount of times. The for loop is used when you already know how many times the loop will be repeated. for example... you want to scan...