What would be the output of the nested for loop given below?

What would be the output of the nested for loop given below?
for ((i=1; i<=5; i++))

do
for ((j=1; j<=5; j++))
do
echo -n “$i”
done
echo mm
done

What would be the output of the nested for loop given below?
for ((i=1; i<=5; i++))

do
for ((j=1; j<=5; j++))
do
echo -n “$i”
done
echo mm
done

A.
11111
22222
33333
44444
55555

B.
12345
12345
12345
12345
12345

C.
54321
54321
54321
54321
54321

D.
55555
44444
33333
22222
11111



Leave a Reply 0

Your email address will not be published. Required fields are marked *