To display the series 2, 4, 16, 256…. upto 10th term (Qbasic Code)

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

Share :

Facebook Twitter Google+
Back To Top

facebook main

counter

Powered by Blogger.