English

Write down the syntax of a nested for loop. - Computer Applications

Advertisements
Advertisements

Question

Write down the syntax of a nested for loop. 

Answer in Brief

Solution

for (initialization; condition; step value)
{ // body of outer loop

                      for (initialization; condition; step value)
                        {
                           // body of inner loop
                        }
// body of outer loop
}
shaalaa.com
  Is there an error in this question or solution?
Chapter 1.1: Nested Loop - EXERCISES [Page 145]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.1 Nested Loop
EXERCISES | Q III. 2. | Page 145
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×