KimmorleyKiller
Member
- Joined
- Feb 3, 2006
- Messages
- 75
- Gender
- Male
- HSC
- 2007
I was hoping someone could help me out with this:
1. Using a FOR ... DO loop, design an algorithm that displays Hello! five times and then displays goodbye!
Ive got this:
Extension: Incorporate a nested FOR ... DO loop so that only *# is repeated
How would i do the extension?
Cheers, KK
1. Using a FOR ... DO loop, design an algorithm that displays Hello! five times and then displays goodbye!
Ive got this:
Code:
BEGIN<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
FOR loop_index = 1 to 5 DO<o:p></o:p>
Display Hello! ;<o:p></o:p>
ENDFOR<o:p></o:p>
Display Goodbye! <o:p></o:p>
END<o:p></o:p>
How would i do the extension?
Cheers, KK
Last edited by a moderator: