write the basic 256 program following:to print the series 1,8,27,64..... upto 10 terms
Answers
Answered by
0
125 , 216 , 343, 512, 729 , 1000, 1331 , 2744 , 3375, 4096
Answered by
0
Language:
BASIC-256
Program:
for a= 1 to 10
print 2^a
next a
Output:
2.0
4.0
8.0
16.0
32.0
64.0
128.0
256.0
512.0
1024.0
Explanation:
- Line 1: Runs loop till 10.
- Line 2: Returns 2 raised to the power a.
Attachments:
Similar questions