Nested for loops

Hey,
Can u do the programme using nested for loops…

see this: