SEQUENCE LAB ← All assignments

ASSIGNMENT 1 / JAVA PRACTICE

Sequence lab.

The available files include the W4 exercise. Enter the first value, the step, and the sequence length to try an interactive version of the Java solution.

INPUT / 01

Choose your values

RESULT / OUTPUT

2 5 8 11

Choose between 1 and 50 values.

How it works.

Each new value increases by the chosen step. The program uses a + i × b, where the counter i starts at zero.
2 + 0×3 → 2   /   2 + 1×3 → 5