Computer Science, asked by rithkparikh, 1 year ago

write the algorithms for finding the square of a given number

Answers

Answered by Anonymous
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
Answered by lfstone3
0
It's better to use Math.pow(2,int); or Math.pow(int,2); for java.
Similar questions