Computer Science, asked by ayemaf5, 1 year ago

write a program to tell the number is in positive, negative or zero in GW basic programming language using goto statement

Answers

Answered by vikasoysw2a
0

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