Computer Science, asked by MaaMahamaya, 8 months ago

Paw D
30. Write a program to print cubes of first 15 natural numbers.​

Answers

Answered by jai696
5

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

cubes_15 = [str(n * n * n) for n in range(1, 15 + 1)]

print("\n".join(cubes_15))

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions