Coding challenge... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 13

Coding challenge...

Please create a program that has the user enter a number and turn it into roman numerals, or have the user enter a roman numeral and turn it into decimal numbers.

5th May 2017, 5:42 PM
Supersebi3
Supersebi3 - avatar
23 Answers
5th May 2017, 6:06 PM
Dev
Dev - avatar
+ 21
Thanks @Joe 😃
6th May 2017, 11:01 AM
Dev
Dev - avatar
+ 17
@Sebi Now I got it... Fixed :)
6th May 2017, 11:13 AM
Gami
Gami - avatar
+ 16
@Sebi If you check on Google, MMMM is allowed... Because the symbols for bigger number were not often been used
5th May 2017, 7:33 PM
Gami
Gami - avatar
+ 16
@Dayve awesome
6th May 2017, 10:58 AM
‎‏‎‏‎Joe
‎‏‎‏‎Joe - avatar
+ 15
@Sebi The biggest number that can be inputted is 4999... Of course the beginning of the number from 4000 will be 4 Ms... I dont quite understand what you mean
6th May 2017, 10:16 AM
Gami
Gami - avatar
+ 14
I did... It says IV
6th May 2017, 10:17 AM
Gami
Gami - avatar
+ 13
https://code.sololearn.com/c33nfPQO2JWN/?ref=app it doesn' t take the input but it convert every number from 1 to max.
6th May 2017, 10:35 PM
Umbe
Umbe - avatar
+ 12
Who is gonna win this challenge @SuperSebi?
6th May 2017, 1:07 PM
Gami
Gami - avatar
+ 12
@SuperSebi Oh Thank you! ^^
6th May 2017, 1:09 PM
Gami
Gami - avatar
+ 12
@Sebi I will try to nlmake my neater :)
6th May 2017, 6:12 PM
Gami
Gami - avatar
+ 12
Finished... It took me a day 4.months ago to make that code while I done the cleaner one in 10 mins 😂😂 https://code.sololearn.com/cjn59IZ7E7z7/?ref=app
6th May 2017, 6:23 PM
Gami
Gami - avatar
+ 11
Please make a search in code published in sololearn code playground section, you will find a bunch of this kind of code ^^
5th May 2017, 6:02 PM
visph
visph - avatar
6th May 2017, 1:50 PM
Pixie
Pixie - avatar
+ 7
@Gami maybe only show the exception for 4 when it actually occurs with 4 M, I entered '4' and it still showed...
5th May 2017, 7:18 PM
Supersebi3
Supersebi3 - avatar
+ 7
Thats not what I mean, just make the message about it only show if theres a MMMM in the number, not all 4's at the beginning of numbers indicate MMMM...
5th May 2017, 7:39 PM
Supersebi3
Supersebi3 - avatar
+ 6
@visph ik but do it anyways
5th May 2017, 6:24 PM
Supersebi3
Supersebi3 - avatar
+ 6
Try to enter 4
6th May 2017, 10:17 AM
Supersebi3
Supersebi3 - avatar
+ 6
@Pixie no, but neat code
6th May 2017, 1:51 PM
Supersebi3
Supersebi3 - avatar