A friend has just started an IT course. Her homework the other day was to write a flow chart to display all the odd numbers from 1 to 99. I am no expert but I could see some problems she got wrong in her firs attempt so I assisted her. The teacher marked it as incorrect.
I had X = 1 (then) display (then) if x< 100 a sub routine X = X + 2 (then) return to main routine before display. The teacher said the display had to be in the main routine after the exit for the sub routine. I say this would only display 99.
If this is too hard to follow I will attach the flow chart next time, please explain!!