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
Computer Science,
5 months ago
Math,
5 months ago
Geography,
5 months ago
Biology,
9 months ago
Math,
9 months ago
CBSE BOARD X,
1 year ago