WRITE A QBASIC PROGRAM TO DISPLAY SUM OF ALL NATURAL NUMBERS BETWEEN 1 AND 100.
QBASIC PROGRAM TO DISPLAY SUM OF ALL NATURAL NUMBERS BETWEEN 1 AND 100.
Here in this Qbasic program, we will display the sum of all natural numbers from 1 to 100.
Solution
DECLARE SUB SERIES ( )
CLS
CALL SERIES
END
SUB SERIES
FOR I = 1 TO 100
PRINT I,
NEXT I
END SUB