write the algorithms for finding the square of a given number
Answers
Answered by
2
1-take a number from user and store it in "n"
2-then take another variable, let it be "p"
3- then put p=n*n
4-print p
2-then take another variable, let it be "p"
3- then put p=n*n
4-print p
Answered by
0
It's better to use Math.pow(2,int); or Math.pow(int,2); for java.
Similar questions