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 

To print the sum of the even numbers from 10 to 50. (Qbasic Code)

REM To print the sum of the even numbers from 10 to 50. (Qbasic Code)
CLS
LET s = 0
FOR i = 10 TO 50 STEP 2
    LET s = s + i
NEXT i
PRINT "The sum of the numbers is "; s
END

Share :

Twitter
Back To Top

facebook main

Powered by Blogger.