Dear programmers,
I am creating a program that will input a positive number higher than 11 using validation and displaying the following series of all numbers from 1 up to that number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Where the inputted number is 15
The column to be used are column 1 and column 5 respectively in alternate manner.
I tried the following code so far:
clear
j = 1
switch = 1
For j = 1 to 15
if switch = 1
@j, 1 say j
else
@j, 5 say j + 1
endif
switch = switch *2
next j
But I can't do the alternating column. Help is appreciated...