+ 6
Challenge for Nerds!!!
Use C++ or Java to have an integer input (base 10) and convert it to base 26. For example, 28=bc, 25=z. Binary is 0’s and 1’s, meaning that it is base2. Base 26 means a=0, b=1, ... z=25 ba=26 and it is like 10. Comment links to your code.
6 odpowiedzi
+ 1
Source base from 2 to 36.
Result base from 2 to 36.
https://code.sololearn.com/csm9e4p4r307/?ref=app
+ 6
https://code.sololearn.com/cOKVFvr6uUji/?ref=app
+ 3
Done with C
https://code.sololearn.com/c3f5BOIz697u/?ref=app
+ 2
there we go, i used 0-P as characters to represent 0-25
https://code.sololearn.com/cU641R0tR7iG/?ref=app
+ 2
I made mine with Python.
And I added the reverse function in the end of the code, so you can give a string of alphabetic letters (base26) to get the corresponding base 10 number.
Can be used to encrypt a name for ex.
https://code.sololearn.com/cScAi38qTuvh/#py
Thanks Jacob for the challenge !