+ 1

How Do You Do Exponentiation???

Hello... Im a starter here. Would anybody teach me how to solve ‘Exponentiation’ clearly?

24th May 2019, 1:58 PM
Mind_Flixe
8 odpowiedzi
+ 1
Well to do exponentiation u need to use ** operator Eg 2**2=4
24th May 2019, 2:02 PM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 11
Use pow() function or recursive function. https://www.programiz.com/c-programming/examples/power-number
24th May 2019, 2:01 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 1
Well using what language? Python , cpp or JS?
24th May 2019, 2:03 PM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 1
Thank you!
24th May 2019, 2:03 PM
Mind_Flixe
+ 1
uhh... Python?
24th May 2019, 2:05 PM
Mind_Flixe
+ 1
Thank you everybody for helping me! 🙂
24th May 2019, 2:07 PM
Mind_Flixe
+ 1
Yes bro then (**) operator will work Eg. print(3**3) Output : 9 Thanks
24th May 2019, 2:07 PM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 1
Thank you again! 🙂
24th May 2019, 2:08 PM
Mind_Flixe