Click here to Skip to main content
15,887,272 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
input is roman numbers

output is if addition is right then print correct otherwise print wrong.
Posted
Updated 17-Jun-15 5:54am
v2
Comments
CHill60 17-Jun-15 11:28am    
And what is the code in between?

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!

But I'd be tempted to do it the easy way: Convert the two numbers to "normal integers", add those, and convert the result back to Roman numerals.
 
Share this answer
 
See, for example: http://www.c-sharpcorner.com/Blogs/14255/converting-to-and-from-roman-numerals.aspx[^].

Everything else should be clear.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900