Question: please help me in writing this c program! I need an answer in the next few hours. make sure you use the function fscanf NOT
please help me in writing this c program! I need an answer in the next few hours. make sure you use the function fscanf NOT scanf

Write a C program to interactively convert integers from Arabic numerals (e.g. "14") to Roman numerals (e.g. "XIV"). Your program should prompt the user to enter a number between 1 and 4999 (inclusive), then print the representation of that number in Roman numerals. After each successful conversion, the program should prompt the user for another number, until the user enters and invalid number (less than 1 or greater than 4999) or enters any non-numerical data (such as "exit") A sample-run of a model solution is shown below. Text in black is the output of the program and text in blue is user input Enter a number between 1 and 4999: 4 The value of 4 in Roman numerals is IV Enter a number between 1 and 4999: 33 The value of 33 in Roman numerals is XXXIII Enter a number between 1 and 4999: 61 The value of 61 in Roman numerals is LXI Enter a number between 1 and 4999: 123 The value of 123 in Roman numerals is CXXIII Enter a number between 1 and 4999: 789 The value of 789 in Roman numerals is DCCLXXXIX Enter a number between 1 and 4999: 652 The value of 652 in Roman numerals is DCLII Enter a number between 1 and 4999: 1234 The value of 1234 in Roman numerals is MCCXXXIV Enter a number between 1 and 4999: -1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
