[ ASSIGNMENT: ] Adam Number | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 51

[ ASSIGNMENT: ] Adam Number

Given a number n, write a program to check whether given number is Adam Number or Not ? Adam number is a number when reversed, the square of the number and the square of the reversed number should be numbers which are reverse of each other. For Example : (12)^2 = 144 (21)^2 = 441 144 is the reversed of 441 441 is the reversed of 144 So, 12 is an Adam number. HappyCodings!:-)

23rd Mar 2018, 5:56 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
54 Answers
23rd Mar 2018, 6:38 PM
LukArToDo
LukArToDo - avatar
+ 30
Anatoli Thank you very much for your support, โ˜บ๐Ÿ‘ as Ipang says, it's the right way to learn! ๐Ÿ˜‰ Mistakes are part of our lives and we have to deal with them, but it's important that we strive to correct them. Ipang thought that this was a serious error in the task, because I wrote it, ๐Ÿ˜” but it was actually mistake in my task setting - textual!!! Now is OK! ๐Ÿ˜Šโœ” Thank you once again for drawing attention. โ˜บ๐Ÿค˜๐Ÿ˜„๐Ÿ‘
28th Mar 2018, 11:51 AM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 26
13th Jul 2018, 8:13 PM
Sumit Programmer๐Ÿ˜Ž๐Ÿ˜Ž
Sumit Programmer๐Ÿ˜Ž๐Ÿ˜Ž - avatar
+ 25
@Yemibk Thanks for taking part โ˜บ๐Ÿ‘ Please, Code Public!! ๐Ÿ‘โœ”โœ”
23rd Mar 2018, 8:03 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 23
@Kinshuk Vasisht It's okay, do not worry, ๐Ÿ˜‰๐Ÿ‘ it's happened, but we will correct everything we can. โ˜บ Thank you so much for pointing out this case! ๐Ÿ˜Š๐Ÿ‘
27th Mar 2018, 2:57 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 22
@Arun Thanks a lot for taking part โ˜บ Please, Code Public! ๐Ÿ‘โœ”โœ”
24th Mar 2018, 4:10 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 22
@Kinshuk Vasisht I used the search bar and I did not find this challenge, so I set it up! Review my challenges and you'll see that I do not have duplicates, but I'll change the title now! Thank you! ๐Ÿ‘
27th Mar 2018, 2:49 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 21
I apologize, I really did not notice such a Cardinal MISTAKE!!! ๐Ÿ˜”โ˜กโ“ This is where the reversed number is used, and the palindrome is something completely different, to which you have drawn my attention! ๐Ÿ‘ˆ๐Ÿ‘โ˜บ Thank you very much for this, that you have pointed me to the mistake. ๐Ÿ‘โ˜บ Thanks a lot friend ๐Ÿค— && HappyCoding!! โ˜บ๐Ÿค˜ I Apologise to EVERYONE! ๐Ÿ‘ && I apologize for the [DUPLICATE] too! โ˜บ
27th Mar 2018, 11:29 AM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 20
@Full Gamer It is Assigned!! ๐Ÿ˜‰๐Ÿ‘ I Set the Challenge in the Lessons Factory!! โ˜บ
23rd Mar 2018, 10:08 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 20
@Oma Falk You did a great job, and found a excellent property's of the Adam Number!! ๐Ÿ˜€ Super!! ๐Ÿ˜‰๐Ÿค˜ Thanks a lot for that ๐Ÿ˜Š Thank you very much for support and participating!! โ˜บ๐Ÿ‘
24th Mar 2018, 4:08 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 20
@Oma Falk ๐Ÿ˜€ Beautiful!! ๐Ÿ˜Š๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘Œ Thanks a lot โ˜บ
24th Mar 2018, 4:47 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 20
@Oma Falk ๐Ÿ‘๐Ÿ˜„๐Ÿ˜…๐Ÿ˜‚๐Ÿ˜‚๐Ÿค˜๐Ÿ˜€ Thank you very much for support ๐Ÿ˜Š and nice words!! ๐Ÿค—๐Ÿ‘๐Ÿค˜๐Ÿ˜„๐Ÿ˜
27th Mar 2018, 1:18 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 18
ThisOne is for QuestionNinja Badge! ๐Ÿ‘ https://code.sololearn.com/cGl2IHkT1Xpt/?ref=app
24th Mar 2018, 7:47 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 18
Kaimi Make your code PUBLIC โœ”โœ” Thanks ๐Ÿ˜‰๐Ÿ‘ ๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡ ๐Ÿ‘‰ Challenge By !! ๐Ÿ‘ˆ ๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡ https://www.sololearn.com/Discuss/1163384/?ref=app https://www.sololearn.com/Discuss/634095/?ref=app
12th Apr 2018, 5:57 AM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 17
@Ipang Not Error, My Mistake!! I wrote, in the task, palindrome numberโ“ a needs a Reversed number, because palindrome and reversed is NOT the same! ๐Ÿ‘โ˜บ Thanks a lot for support โ˜บ๐Ÿ‘
27th Mar 2018, 1:23 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 12
@Danijel Ivanovic, no worries no one is perfect and even I made and still make serious mistakes. so don't loose any sleep over it Danijel. @Ipang, if you read my previous post it should be very clear what a palindrome actually is. So it is actually very simple. A text form you should be able to read that word from left to right AND from right to left and still keep the same spelling and meaning. Hope you get it, try to Google it, but try to keep all the fun about programming on SL. ๐Ÿ˜†๐Ÿ˜†๐Ÿ˜†๐Ÿ˜†
28th Mar 2018, 11:13 AM
๐Ÿ‡บ๐Ÿ‡ธ Anatoli๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ ,
๐Ÿ‡บ๐Ÿ‡ธ Anatoli๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ , - avatar
+ 10
My solution: โ€ข One-liner โ€ข No if statements โ€ข No equality operators โ€ข 123 bytes https://code.sololearn.com/c26f9c16CQCP/?ref=app
23rd Mar 2018, 6:53 PM
ฦ’red
ฦ’red - avatar
+ 10
Some properties of Adam numbers: - they have no other digits but 0,1,2,3 - they dont have more than one digit 3 - if they have a digit 3, they dont have a digit 2 - they dont have more than two digits 2 - if digit 3 is not first or last, the product of digits having the same distance to digit 3 will not be greater than zero eg 131: surely no Adam 1*1 = 1 113001 : 0*1 , 0*1 ... might be .... more will follow
24th Mar 2018, 3:43 PM
Oma Falk
Oma Falk - avatar
+ 10
@Danijel Ivanovic, A palindrome is a bumber or word that spells the same revwresd and still keeps the same meaning like : The number 1221 palindrome is still 1221if you reverse it. In letters dad is a palindrome because when you read it from left to right or from right to left it spells the same and has the same meaning. Hope ypu have a clear pucture what a palindrome actually is. Goodluck and a lot of fun....โ˜บโ˜บ๐Ÿ˜Š๐Ÿ˜Š๐Ÿ˜†๐Ÿ˜†
27th Mar 2018, 11:02 AM
๐Ÿ‡บ๐Ÿ‡ธ Anatoli๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ ,
๐Ÿ‡บ๐Ÿ‡ธ Anatoli๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ , - avatar