Q3 Write a general-purpose function to convert any given year into its roman equivalent. Use these roman equivalents for decimal numbers: 1-I, 5-V, 10-X, 50-L, 100-C, 500-D, 1000-M.
Program: 124
Write a general-purpose c function to convert any given year into its roman equivalent. Use these roman equivalents for decimal numbers: 1-I, 5-V, 10-X, 50-L, 100-C, 500-D, 1000-M.
Example:
Roman equivalent of 1988 is mdcccclxxxviii
Roman equivalent of 1525 is mdxxv
Output:
Enter year: 2017
mmxvii