{{#items}}

{{text}}

{{/items}} {{ctaText}}

{{#items}} {{/items}}

showing results for - "java square a number"

Cornelius

21 Mar 2017

```
1//To square:
2int i = 2;
3int square = Math.pow(i, 2);
4
5//To cube:
6int i = 2;
7int cube = Math.pow(i, 3);
8
9//To nth power:
10int i = 2;
11int nthPower = Math.pow(i, 4);
```

similar questions

finding a given root if a number javajava program to find the perimeter of the circlehow to do 4th root javajava program to find perimeter of rectangleswap two numbers javahow to give square in javahow to find power of a number in javapower of a number in javapronic number in javajava program to find perimeter of a rectanglejava program to find the power of a numbersquare root of a number in javawrite a java program to print the length and perimeter of a rectanglejava code for squaremath square javaall devisor of a number javasquare root of a number in java without sqrtprint consecutive numbers in javasqrt in javajava program to find perimeter of squarequeries leading to this page

how to write square of a number in java without mathsquare a number in javajava math squearehow to find the square of any number in javajava math squaremath square javasqure in javajava squaring a numberjava how to square a intsqaure in javajava how to squareroot a numberhow to do sqaured in codegiven number to squares javahow to square an int in javasqared number in javahow to sqare a numberis javasquare of a number javahow to write square of a number in javajava square root intnumber squared in javajava program sqr of two numsquare an integer javajava square a numberjava square mathjava square operatorsquare of a number in javasquare integer in javajava calculation for sqaurejava square a number variablehow to square a numbe in javahow ot square a number in javahow to square on javajava square of intjava square a doublejava square wayssquare of numbers in javasquaring numbers in javajava square methodjava square numberhow to calcualte squared numbers in javajava method to find square of a numberhow to find square of a number in javasquare values javacode to square a number in javahow to find a square value of something in javasquare integer javasquared javahow to square something javasquare power in javasqared javajava squarehow to do a number sqaured in javacalculate square in javasquare root number javajava square rootsquare number program in javaget square of x javahow to take a square of a num in javahow to square someting in javasquare javajava square root of intjava squareroot a numbesquared in javasquare a number in javajava square the valuejava squaredmath square javaperfect square numbers in javajava squarring a number x 2 25 in javahow to square a number javajava number squarejava math squarehow to square a number in javasquare numbers javahow to square a a number in javanumber square in javajava find square numbersjava puting number to squarehow to square root number in javajava square of numberhow to find the square in javasquare number javajava square powerhow to get square in javamath squared javahow to square numbers in javahow to square in javahow to square root integers in javasquaring a number in javahow to square an integer in javasquare value in javajava how to square a numberjava program to find square of a number programizsquare an int in javajava square root of a numbernumbers squared javahow to do a square in javasquare in javasqaring numbers in javahow to square number in javasquare an int javajava square an integermath operator to square a number in javahow to use java square numberssqr in javajava square functionhow to square something in javahow to squareroot an int in javamath squared in javasquare an integer in javause square in javajava square of n numberssquare numbers loop javahow to get square of a number in javasquare function javasquarevalue 28 29 function javajava get square of a numberjava how to square somethingsquare a digit javasquare is square method javasquare number in javasquare values float javacan we use 5e to square in javasquare method in javajava square intjava find number squarejav math class square a numbersquare number pattern in javasquare a number javanumbers in a square javasquare int in javasquare root javajava is square numbersquare of a int javasquare of number in javahow to square of a number in javasquare in java functintype square in javasquare program javasquare something in javahow to square integers in javahow to square javahow to squar in javathe square of whole number in java math square javasquare java methodsquare something javahow to take square of a number in java square in javajava program to find square of a numberjava square of a numbersquare of the numbers in javajava square a number your answer for

you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content

please ensure to add code which is syntactically corrent and executes properly

ask question on maxinterview

you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content

please be clear, to the point and respectful