[🏆easy challenge 🏆] Blast a number 💥🏆🎮💡⚠ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

[🏆easy challenge 🏆] Blast a number 💥🏆🎮💡⚠

Create a code which inputs a number and processes it in the following way- Inverses the digit, i.e. 0 becomes 9, 9 becomes 0, 1 becomes 8, etc. Now, nos are converted to alphabets. 0 becomes A, 9 becomes J,etc. Now, blast it by adding the emoji. :p Eg- Input-> 9876 Output-> 💥A💥B💥C💥D💥 You can also see my own code- https://code.sololearn.com/W69NlQpJgWNn/?ref=app

17th Oct 2017, 10:55 AM
Swapnil Srivastava
Swapnil Srivastava - avatar
7 Answers
+ 7
hers my one liner... ## try giving any string containing some digits....or try giving float value also.... https://code.sololearn.com/cIx5OpK8O4iW/?ref=app
17th Oct 2017, 12:20 PM
sayan chandra
sayan chandra - avatar
17th Oct 2017, 2:16 PM
Alexey Zlo
Alexey Zlo - avatar
+ 4
19th Oct 2017, 1:04 AM
Diego Ribeiro Alves
Diego Ribeiro Alves - avatar
+ 3
https://code.sololearn.com/ctJM9u7Su9mM/#java My Java Version - Maybe a bit complicated :D
17th Oct 2017, 12:23 PM
R4xx4r
R4xx4r - avatar
+ 2
My solution - a bit long-winded but the first challenge I've done - feedback appreciated! :) In Python3: https://code.sololearn.com/ceEyRKBh6V7O/#py
17th Oct 2017, 2:40 PM
Freddie Payne (Fredster64)
Freddie Payne (Fredster64) - avatar
21st Oct 2017, 7:50 PM
Saurav Priyadarshi
Saurav Priyadarshi - avatar
- 1
a whole new refreshing challenge## try it https://www.sololearn.com/discuss/817002/?ref=app
26th Oct 2017, 5:05 PM
sayan chandra
sayan chandra - avatar