Computer Science, asked by sshivamm7, 4 months ago

write a program to print first 10 powers of 3 ​

Answers

Answered by allysia
0

Answer:

The codes are:

_____________________

for i in range(1,11):

   print (3**i)

____________________

If you're not able to understand it properly or just want to verify it, consider viewing the image.

Attachments:
Answered by jai696
1

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

powers = [str(3 ** n) for n in range(1, 11)]

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

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

Similar questions