write an algorithm to find out the square of any number
Answers
Answered by
1
Answer:
The above photo is the answer
Attachments:
![](https://hi-static.z-dn.net/files/d2c/1cf23313a9c96c4d0741b9e18e9e9bf1.jpg)
Answered by
1
Algorithm is as follows
➡️ Dɪᴠɪᴅᴇ ᴛʜᴇ ɴᴜᴍʙᴇʀ ɪɴ ᴛᴡᴏ ᴘᴀʀᴛs ᴡɪᴛʜ ᴏɴᴇ ᴘᴀʀᴛ ᴄᴏɴᴛᴀɪɴɪɴɢ ᴏɴʟʏ ᴛʜᴇ ɴᴜᴍʙᴇʀ ᴀᴛ ᴜɴɪᴛ's ᴘʟᴀᴄᴇ sᴀʏ ᴘᴀʀᴛ 'A', ᴀɴᴅ ᴏᴛʜᴇʀ ᴘᴀʀᴛ sᴀʏ 'B', ᴄᴏɴᴛᴀɪɴɪɴɢ ᴛʜᴇ ʀᴇᴍᴀɪɴɪɴɢ ɴᴜᴍʙᴇʀ.
➡️ Nᴏᴡ sϙᴜᴀʀᴇ ᴛʜᴇ ɴᴜᴍʙᴇʀ ᴀᴛ ᴜɴɪᴛ's ᴘʟᴀᴄᴇ.
➡️ Tʜᴇ sϙᴜᴀʀᴇ ᴡɪʟʟ ʙᴇ ᴏɴᴇ ᴏғ ᴛʜᴇsᴇ; {0,1,4,9,16,25,36,49,64,81}.
Similar questions
Hindi,
4 months ago
Social Sciences,
4 months ago
Math,
4 months ago
Math,
9 months ago
Physics,
1 year ago