Two numbers are entered through the keyboard. Write a program to find the value of one number raised to the power of another. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Two numbers are entered through the keyboard. Write a program to find the value of one number raised to the power of another.

21st Nov 2021, 5:04 AM
ź§š“Šˆš’†œšŸ…°šŸ…»šŸ…¾šŸ…ŗ šŸ…ŗšŸ†„šŸ…¼šŸ…°šŸ† šŸ…暟…°šŸ…»š’†œš“Š‰ź§‚
ź§š“Šˆš’†œšŸ…°šŸ…»šŸ…¾šŸ…ŗ šŸ…ŗšŸ†„šŸ…¼šŸ…°šŸ† šŸ…暟…°šŸ…»š’†œš“Š‰ź§‚ - avatar
2 Answers
+ 2
Alok Kumar Pal You need to put effort then only community will help you. Attach your code
21st Nov 2021, 5:25 AM
RšŸ’ šŸ‡®šŸ‡³
RšŸ’ šŸ‡®šŸ‡³ - avatar
+ 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
21st Nov 2021, 7:21 AM
Arnav Gumber
Arnav Gumber - avatar