Computer Science, asked by Ayush18k78, 7 months ago

write an algorithm to find out the square of any given number​

Answers

Answered by itzcutegirl87
7

{\huge  \underline{\mathfrak\green{hy \:mate}}}

Algorithm is as follows: Divide the number in two parts with one part containing only the number at unit's place say part 'A', and other part say 'B', containing the remaining number. Now square the number at unit's place. The square will be one of these; {0,1,4,9,16,25,36,49,64,81}.

Answered by Rashi0906
2

Algorithm is as follows: Divide the number in two parts with one part containing only the number at unit's place say part 'A', and other part say 'B', containing the remaining number. Now square the number at unit's place. The square will be one of these; {0,1,4,9,16,25,36,49,64,81}.

Thnx ✌️✌️

Similar questions