Write a program that produces a sequence of numbers. It should read a single line with two integers and it should produce a sequence starting from the first integer and ending on the second.
With i and j as the input, your program should produce the following with one item per line: i, i+1, i+2, …, j-2, j-1, j.
-999 ≤ i ≤ j ≤ 999
3 6
3
4
5
6
12 16
12
13
14
15
16
try first: countdown1
try next: repeat
Copyright © 2020-2022 Rudy Matela
This text is available under the CC BY-SA 4.0 license.
Originally available on cscx.org/seq1