Computer Science, asked by shreyamitra822, 1 day ago

Write a program in QBASIC to find and print the sum of the following series S = 1 + 8 + 27 + 64 .... N​

Answers

Answered by adrizajonas
2

CLS

S=0

INPUT "ENTER NO. OF TERMS" ; N

FOR i = 1 to N

S = S + ( i ^ 3 )

NEXT i

PRINT S

END

Attachments:
Similar questions