Write a Q-Basic programme to print a series with gap of 4 between 1 and 40.
SagarikaChaterjee:
FAST PLZZZZZZZZZZZZZZZZ
Answers
Answered by
5
The steps are as follows-
10 N=1
20 IF N<41 THEN GOTO 30 ELSE GOTO 60
30 PRINT N
40 N=N+4
50 GOTO20
60 END
10 N=1
20 IF N<41 THEN GOTO 30 ELSE GOTO 60
30 PRINT N
40 N=N+4
50 GOTO20
60 END
Answered by
1
CLS
INPUT "enter any number" N
LET I = 4
WHILE I<N
PRINT I
I = I+4
WEND
END.
OUTPUT;
4
8
12
16
20
24
28
32
36
INPUT "enter any number" N
LET I = 4
WHILE I<N
PRINT I
I = I+4
WEND
END.
OUTPUT;
4
8
12
16
20
24
28
32
36
Similar questions