Nested loops

Nested loops

C supports nesting of loops in C. Nesting of loops is the feature in C that allows the looping of statements inside another loop.

Any number of loops can be defined inside another loop, i.e., there is no restriction for defining any number of loops. The nesting level can be defined at n times. You can define any type of loop inside another loop; for example, you can define 'while' loop inside a 'for' loop.

Nested for Loop:

for(initial value; condition; increment/decrement)
{
	//body of for loop
	for(initial value; condition; increment/decrement)
	{
		//body of for loop
		...........
		statements;
	}
	statements;
}

Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad