Modularisation Ex 3 - Values in a Range

Created By: M Ritter | Difficulty Level: 3

Description

Write an algorithm to output all of the numbers in a given range. The user should be prompted for the start and end values and a function called to display the values in that range (including the start and end values).

Puzzle

Drag from here

  • BEGIN
  • FOR count = start TO stop
  • INPUT stop_num
  • BEGIN numGenerator(start, stop)
  • END numGenerator
  • END
  • DISPLAY count
  • ENDFOR
  • NEXT count
  • INPUT start_num
  • CALL numGenerator(start_num, stop_num)

Construct your solution here