Computer Science, asked by bhavanajothim3, 1 month ago

Write a GW Basic program to calculate even number from 1 to 20...
I want answer within 2mins please let me know ​

Answers

Answered by wwwsoundtrackvrx
0

Answer:

Hope my answer is correct

Explanation:

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

Similar questions