EASy68K
http://www.easy68k.com/EASy68Kforum/

nested loop
http://www.easy68k.com/EASy68Kforum/viewtopic.php?f=6&t=1175
Page 1 of 1

Author:  mhammad21 [ Sat Mar 16, 2013 10:28 am ]
Post subject:  nested loop

hi guys
would u please help me to get these outputs using nested loop ??
output 1 )

1
2 3
3 4 5
4 5 6 7
5 6 7 8 9


output 2)

5
4 5
3 4 5
2 3 4 5
1 2 3 4 5

your help will be highly appreciated ..
regards ...

Author:  profkelly [ Sat Mar 16, 2013 12:51 pm ]
Post subject:  Re: nested loop

This looks too much like a homework problem. We don't do homework problems here because that would defeat their purpose. Approach a programming assignment in Assembly language the same way any programming assignment should be approached.
    1. Diagram the logic. Use a flowchart or pseudocode.
    2. Verify and test your logic before proceeding.
    3. Write the code as described in your logic diagram.
    4. Test.
    5. Repeat steps as necessary until the solution is correct.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/