1, 3, 6, 10, 15....... N terms

how will we write a program to print the following series where N is the input:
1, 3, 6, 10, 15....... N terms
  1. CLS
    INPUT "Enter the no. of terms";N
    a=1
    for i=2 to N+1
    print a,
    a=a+i
    next i

Comments

Unknown said…
Write a program in QBASIC to print 5,10,15,20,25...n terms​
Unknown said…
write a program in Qbasic to print the following 3 , 6 , 11 , 18 … n terms
Unknown said…
Write a program in QBASIC to print the following
series:
7 , 13 , 19 , 25 …. n terms
Unknown said…
Write a program in QBASIC to print
-1 , 2 , 7 , 14 … n terms

Popular posts from this blog

PROGRAM TO FIND SQUARE, CUBE, SQUARE ROOT AND CUBE ROOT OF GIVEN NUMBER

PALINDROME AND ARMSTRONG PROGRAMS

PROGRAM TO DISPLAY SUM, PRODUCT, DIFFERENCE AND PRODUCT OF TWO / THREE NUMBERS