Computer Science, asked by guptamanshi540, 2 months ago

write a program in q-basic to print all the even numbers from 1 to 100 in loop statement​

Answers

Answered by anindyaadhikari13
3

Answer:

This is the required QBASIC program for the question.

CLS

FOR I = 2 TO 100 STEP 2

   PRINT I;

NEXT I

END

Algorithm:

  1. START.
  2. Iterate a loop for I = 2 to 100. Step value = 2 as difference between two consecutive even number is 2.
  3. Display the value of I.
  4. STOP.

Refer to the attachment.

•••♪

Attachments:
Similar questions