You are on page 1of 9

2.

Arr[0] dopey

Arr[1] GRUMPY

Arr[2] hAPPy

Arr[3] sleepY

Arr[4] BASHFUL

Arr[5] doC

Contents of the 1st iteration of outer loop

Contents of 1st iteration of inner loop

Arr[0] GRUMPY

Arr[1] dopey

Arr[2] hAPPy

Arr[3] sleepY

Arr[4] BASHFUL

Arr[5] doC
Contents of 1st iteration of inner loop

Arr[0] GRUMPY

Arr[1] dopey

Arr[2] hAPPy

Arr[3] sleepY

Arr[4] BASHFUL

Arr[5] doC

Contents of 2nd iteration of inner loop

Arr[0] GRUMPY

Arr[1] dopey

Arr[2] hAPPy

Arr[3] sleepY

Arr[4] BASHFUL

Arr[5] doC
Contents of 3rd iteration of inner loop

Arr[0] GRUMPY

Arr[1] dopey

Arr[2] hAPPy

Arr[3] sleepY

Arr[4] BASHFUL

Arr[5] doC

Contents of 4th iteration of inner loop

Arr[0] BASHFUL

Arr[1] dopey

Arr[2] hAPPy

Arr[3] sleepY

Arr[4] GRUMPY

Arr[5] doC
Contents of 5th iteration of inner loop

Arr[0] BASHFUL

Arr[1] dopey

Arr[2] hAPPy

Arr[3] sleepY

Arr[4] GRUMPY

Arr[5] doC
Contents of the 2nd iteration of outer loop

Contents of 1st iteration of inner loop

Arr[0] BASHFUL

Arr[1] dopey

Arr[2] hAPPy

Arr[3] sleepY

Arr[4] GRUMPY

Arr[5] doC

Contents of 2nd iteration of inner loop

Arr[0] BASHFUL

Arr[1] dopey

Arr[2] hAPPy

Arr[3] sleepY

Arr[4] GRUMPY

Arr[5] doC
Contents of 3rd iteration of inner loop

Arr[0] BASHFUL

Arr[1] GRUMPY

Arr[2] hAPPy

Arr[3] sleepY

Arr[4] dopey

Arr[5] doC

Contents of 4th iteration of inner loop

Arr[0] BASHFUL

Arr[1] GRUMPY

Arr[2] hAPPy

Arr[3] sleepY

Arr[4] dopey

Arr[5] doC
Contents of the 3rd iteration of outer loop

Contents of 1st iteration of inner loop

Arr[0] BASHFUL

Arr[1] GRUMPY

Arr[2] hAPPy

Arr[3] sleepY

Arr[4] dopey

Arr[5] doC

Contents of 2nd iteration of inner loop

Arr[0] BASHFUL

Arr[1] GRUMPY

Arr[2] dopey

Arr[3] sleepY

Arr[4] hAPPy

Arr[5] doC
Contents of 3rd iteration of inner loop

Arr[0] BASHFUL

Arr[1] GRUMPY

Arr[2] doC

Arr[3] sleepY

Arr[4] hAPPy

Arr[5] dopey

Contents of the 4th iteration of outer loop

Contents of 1st iteration of inner loop

Arr[0] BASHFUL

Arr[1] GRUMPY

Arr[2] doC

Arr[3] hAPPy

Arr[4] sleepY

Arr[5] dopey
Contents of 2nd iteration of inner loop

Arr[0] BASHFUL

Arr[1] GRUMPY

Arr[2] doC

Arr[3] dopey

Arr[4] sleepY

Arr[5] hAPPy

Contents of the 5th iteration of outer loop

Contents of 5th iteration of inner loop

Arr[0] BASHFUL

Arr[1] GRUMPY

Arr[2] doC

Arr[3] dopey

Arr[4] hAPPy

Arr[5] sleepY ULYSSES URCH D. DURAN


AI22

You might also like