To input the first term, common difference and final term of the series and display the series. (Qbasic Code)

To input the first term, common difference and final term of the series and display the series.
  • CLS
    INPUT "Enter the initial value of the series"; a
    INPUT "Enter the common difference of the series"; d
    INPUT "Enter the final value of the series"; c
    FOR i = a TO c STEP d
        PRINT i
    NEXT i
    END

Share :

Twitter

Random Posts

Back To Top

facebook main

counter

Powered by Blogger.