+ 1
Two numbers are entered through the keyboard. Write a program to find the value of one number raised to the power of another.
2 Respostas
+ 2
Alok Kumar Pal You need to put effort then only community will help you. Attach your code
+ 1
Also mention the language in which you want to do this.
But no worries, Here's the answer:
a = your input;
b = your input;
print(a**b);
a**b means a raised to the power b
It will definitely work in Javascript and python
But in Java, it will not work, so here is the alternative:
use Math.pow() like this-
Math.pow(a, b);
It will also raise a to the power b