118k views
1 vote
4.2: Roman Numeral Converter

Write a program that asks the user to enter a number within the range
of 1 through 10. Use a switch statement to display the Roman numeral
version of that number.

Input Validation: Do not accept a number less than 1 or greater than 10.

1 Answer

3 votes

Answer:

1 I

2 II

3 III

4 IV

5 V

6 VI

7 VII

8 VIII

9 IX

10 X

User Bildsoe
by
5.1k points