+ 1

Hello there

I'm beginner, so that I couldn't work with math operators like degrees 2^3=8; 2^5=32; 2^n -? How I'l make it?

25th Jun 2019, 5:02 PM
Jakhongir
Jakhongir - avatar
3 ответов
+ 2
Hi Jakhongir Please ask question appropriately. The headline of question helps to know what the question is all about. And the tags helps others to find this question when they search. If someone have the same question, he cannot search like 'anyone' , 'me??'. So please use proper tags while asking. You should edit the question now.
25th Jun 2019, 5:11 PM
Sachin Artani
Sachin Artani - avatar
+ 1
int base = 2; int exponent = 3; int result = Math.pow(base, exponent); System.out.println(result);
25th Jun 2019, 5:12 PM
Anton Böhler
Anton Böhler - avatar
+ 1
Ok, I understood you, thanks
26th Jun 2019, 1:30 AM
Jakhongir
Jakhongir - avatar