A QBASIC program to find sum of squares of numbers form 1 to 5
Answers
Answered by
3
REM program to find sum of square of first 50 odd numbers. SUM = 0. FOR COUNTER = 1 TO 50. ODDNUM = 1 + (COUNTER - 1) * 2. SUM = SUM + ODDNUM ^ 2. NEXT COUNTER. PRINT "SUM OF SQUARE OF FIRST 50 ODD NUMBERS IS"; SUM.
Similar questions