Computer Science, asked by RickyBaisoya98, 2 months ago

write python program to get the result of 12^2​

Answers

Answered by BrainlyProgrammer
9

Answer:

 \orange{\tt print(12* *2)}

OR

 \orange{  \tt \: print(pow(12,2))}

Note:-

  • pow() returns a number raised to power second number
  • You can also write 12**2 instead of using pow()
Attachments:
Answered by atrs7391
2

(12 * * 2) will give the result of 12^{2}

Now you can either store the value using any variable, like this:

result = (12 * * 2)

Or, simply print using print() function, like this:

print(12 * * 2)

Extra:

* is used to calculate the product and,

* * is used to find the power of the number

Similar questions