REM To print the sum of the first 10 odd numbers. (Qbasic Code)
CLS
s = 0
a = 2
FOR I = 1 TO 10
s = s + a
a = a + 2
NEXT I
PRINT "Sum of square of first 10 odd numbers ="; s
END
Home | IT Zone | Practice Zone | Tips / Tricks | Did You Know | Inspirational | Health | Insurance | Universities | Forex | Mathematics | Illusions | Children Day Quotes | Be Aware | Articles | Funny Pics | Entertainment | Songs | Simple Joys of Life |
REM To print the sum of the first 10 odd numbers. (Qbasic Code)
CLS
s = 0
a = 2
FOR I = 1 TO 10
s = s + a
a = a + 2
NEXT I
PRINT "Sum of square of first 10 odd numbers ="; s
END