To find the sum of the series 1, 2, 3, …..10. (Qbasic Code)

To find the sum of the series 1, 2, 3, …..10. (Qbasic Code)
  • CLS
    s = 0
    FOR i = 1 TO 10
        s = s + i
    NEXT i
    PRINT "The sum of the series from 1 to 10 is "; s
    END

Share :

Twitter
Back To Top

facebook main

counter

Powered by Blogger.