write a program to print the sum of first 50 odd number in QBASIC
Answers
Answered by
96
REM " TO PRINT THE SUM OF FIRST 50 ODD NUMBERS "
CLS
A = 0
FOR I = 1 TO 100 STEP 2
A = A + I
NEXT I
PRINT " THE SUM OF FIRST 50 ODD NUMBERS IS: " ;A
END
Answered by
4
I need the output please
(output screen in QB64)
Similar questions