134,495 views
33 votes
33 votes
Write a program to input 10 numbers in GW BASIC

User Skorks
by
3.2k points

1 Answer

24 votes
24 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 Lachy
by
3.0k points