To display the series- 1,4,9,16…… upto 10th term (Qbasic Code)

To display the series- 1,4,9,16…… upto 10th term.
  • CLS
    FOR i = 1 TO 10
        a = i ^ 2
        PRINT a
    NEXT i
    END

Share :

Twitter
Back To Top

facebook main

counter

Powered by Blogger.