index | submit | rank | book

seq1 – Sequence (easy version)

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.

The sequence from 3 to 6 is 3, 4, 5 and 6.

Input and Output

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

Example input 1

3 6

Example output 1

3
4
5
6

Example input 2

12 16

Example output 2

12
13
14
15
16

Scoring

try first: countdown1

try next: repeat

index | submit | rank | book

Copyright © 2020-2023 Rudy Matela
All rights reserved