Write a program in the BASIC language to calculate all even numbers from 1 to 100.
Answers
Answered by
0
10 LET N=1
20 IF N MOD 2=0 THEN PRINT N ELSE GOTO 30
30 N=N+1
40 IF N<=100 THEN GOTO 20 ELSE GOTO 50
50 END
20 IF N MOD 2=0 THEN PRINT N ELSE GOTO 30
30 N=N+1
40 IF N<=100 THEN GOTO 20 ELSE GOTO 50
50 END
Similar questions