summary refs log tree commit diff stats
path: root/assignments/22-dec-to-roman.c
diff options
context:
space:
mode:
Diffstat (limited to 'assignments/22-dec-to-roman.c')
-rw-r--r--assignments/22-dec-to-roman.c34
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
+
+*/
+