For this challenge, your aim is to write a program used to convert whole numbers (integer) into roman numerals and vice versa.
Roman Numerals are based on seven symbols:
Symbol | Value |
I | 1 |
V | 5 |
X | 10 |
L | 50 |
C | 100 |
D | 500 |
M | 1,000 |
Complete the code
Test Plan
Test # | Input Values | Expected Output | Actual Output |
#1 | 8 | VIII | |
#2 | 75 | LXXV | |
#3 | 2017 | MMXVII | |
#4 | CI | 101 | |
#5 | MMXVII | 2017 | |
#6 | MCMXLV | 1945 |
Solution...
The solution for this challenge is available to full members!Find out how to become a member:
➤ Members' Area