Write a program in QBASIC to find and print the sum of the following series S = 1 + 8 + 27 + 64 .... N
Answers
Answered by
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