how to write qbasic that accepts number and prints 1,4,9,16,25.......n
Answers
Answered by
1
Answer:
Explanation:
1. Sequence is x²
10 FOR X = 1 TO 10
20 PRINT X*X
30 NEXT X
40 END
2. Sequence is (x³ + 1)
10 FOR X = 1 TO 10
20 PRINT(X*X*X+1)
30 NEXT X
40 END
Similar questions