diff options
author | smlckz <smlckz@college> | 2021-12-24 15:21:53 +0530 |
---|---|---|
committer | smlckz <smlckz@college> | 2021-12-24 15:21:53 +0530 |
commit | 6dec141d4529a490384eb42314c04428fc58ba20 (patch) | |
tree | a0bc436963bfa404c5208f12ad637f11fc70b20d /assignments/22-dec-to-roman.c | |
parent | b73983c3717642ca10e7cfe93d97609adc377da9 (diff) | |
download | college-master.tar.gz |
Diffstat (limited to 'assignments/22-dec-to-roman.c')
-rw-r--r-- | assignments/22-dec-to-roman.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/assignments/22-dec-to-roman.c b/assignments/22-dec-to-roman.c index 05a9553..e4dbef1 100644 --- a/assignments/22-dec-to-roman.c +++ b/assignments/22-dec-to-roman.c @@ -51,3 +51,37 @@ int main(void) return 0; } +/* +Output: +Set 1: +To convert a decimal number to roman number + +Enter a number: 0 +Invalid input: it must be between 1 and 3999, inclusive. + +Set 2: +To convert a decimal number to roman number + +Enter a number: 123 +CXXIII + +Set 3: +To convert a decimal number to roman number + +Enter a number: 987 +CMLXXXVII + +Set 4: +To convert a decimal number to roman number + +Enter a number: 1234 +MCCXXXIV + +Set 5: +To convert a decimal number to roman number + +Enter a number: 2946 +MMCMXLVI + +*/ + |