29.7k views
3 votes
Write a program to input 10 numbers in GW BASIC

1 Answer

3 votes

Answer:

Step-by-step explanation:

GW-Basic Programs

Practical: 1- Write a Program to Print even numbers from 1 to 40.

Program:

10 CLS

20 FOR B = 2 TO 40 STEP 2

30 PRINT B

40 NEXT B

50 END

Algorithm

Step 1 START

Step 2 STORAGE B=2

Step 3 DECISION IS B<= 40 IF

NOT THEN GO TO STEP 7

Step 4 COMPUTE B=B+2

Step 5 PRINT

STEP 6 GOTO STEP 3

Step 7 END

User Thomas Moore
by
3.1k points