Bloomberg Interview Question

Write code for a C program that takes in roman numerals and outputs decimal numbers.