To display the numbers -10, -5, 0, 5, 10 …. upto 10th term. (Qbasic Code)

To display the numbers -10, -5, 0, 5, 10 …. upto 10th term. (Qbasic Code)
  • CLS
    a = -10
    c = 1
    DO UNTIL c > 10
        PRINT a
        a = a + 5
        c = c + 1
    LOOP

Share :

Facebook Twitter Google+
Back To Top

facebook main

counter

Powered by Blogger.