Computer Science, asked by raj822783, 6 months ago

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

Answers

Answered by kotlabhavana2003
1

Answer:

The above photo is the answer

Attachments:
Answered by loverboy0001
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