Conversion from Decimal to roman number

Roman numerals denote numbers based on symbols. These are commonly used nowadays. This post is based on how to convert a positive decimal number to Roman symbol. For example.

 Input    Output
 18     : XVIII
 189    : CLXXXIX
 604    : DCIV
 982    : DMLXXXII
 3000   : MMM

Write an efficient algorithm which is perform convert decimal to roman number.




Comment

Please share your knowledge to improve code and content standard. Also submit your doubts, and test case. We improve by your feedback. We will try to resolve your query as soon as possible.

New Comment







© 2022, kalkicode.com, All rights reserved