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

Lokesh Kumar

Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.