Example 35: Integer to Roman Conversion
Explore how to write a C function that converts any integer year into its Roman numeral equivalent. Understand the use of modular functions, handling of special cases like 4, 49, and 999, and improve your grasp of functions in C programming.
We'll cover the following...
We'll cover the following...
Problem
Write a general-purpose function to convert any given year into its roman equivalent. Use the following table to convert a year to its roman equivalent.
| Number | Roman Equivalent |
|---|---|