50.4k views
5 votes
Write a c program to display the series: 1,8,27,64,125​

1 Answer

4 votes

num_list = [1, 8, 27, 64, 125]

for x in range ( len( num_list) ) :

print (num_list[x])

User Shouvik
by
3.9k points