To print the given series. 11111 1111 111 11 1 (Qbasic Code)

To print the given series.
11111
1111
111
11
1

  • CLS
    n = 11111
    FOR i = 1 TO 5
        PRINT n
        n = (n - 1) / 10
    NEXT i
    END

Share :

Twitter
Back To Top

facebook main

counter

Powered by Blogger.