Computer Science, asked by Niks9065, 2 months ago

Print the pattern in Qbasic:
1+(1+3) +(1+3+5).... Upto n terms.

Answers

Answered by 10ayushranjan
0

Answer:

CLS

N# = 1

FOR I = 1 TO 5

PRINT N# * N#

N# = (N# * 10) + 1

NEXT I

END

Similar questions