To input any 10 numbers and find their sum. (Qbasic Code)

To input any 10 numbers and find their sum. (Qbasic Code)
  • CLS
    FOR i = 1 TO 10
        INPUT "Enter the number"; n
        s = s + n
    NEXT i
    PRINT "The sum of the numbers"; s
    END

Share :

Twitter
Back To Top

facebook main

counter

Powered by Blogger.