Computer Science, asked by 123456vac, 1 year ago

write a program to print the sum of first 50 odd number in QBASIC

Answers

Answered by Queengreen21
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 marcianodakari
4

I need the output please

(output screen in QB64)

Similar questions