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 | Tips / Tricks | Did You Know | Inspirational | Health | World Infos | Insurance | Universities | Forex | Mathematics | Illusions | Children Day Quotes | Fun / Jokes | Decent Quotes | Birthday Msgs | Good Morning Msgs | Good Night Msg | Husband Wife Jokes | Teacher Students Jokes | Insult Jokes | Love Quotes | Sad Quotes | Funny Pics | Be Aware | Articles | 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