+ 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
61 ответ
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