+ 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?
3 Antworten
+ 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.
+ 1
int base = 2;
int exponent = 3;
int result = Math.pow(base, exponent);
System.out.println(result);
+ 1
Ok, I understood you, thanks