Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert integers to roman

Status
Not open for further replies.

NTC0394

Programmer
Jun 19, 2013
21
I need a program to ask the user a number from 1 to 3999 and convert to roman.

I don't know how do this without using WHILE.
thank you in advance!
 
Thank you @milrom!
The second code you've sugested works! Great!
I have just a simple problem now: on the output shows something like this:

Enter Arabic numeral:
2
IIL�

how solve this problem: " L�", or better take out it?


thank you for help!

 
NTC0394,
My question is simolar as before: Occurs the the error in the original code also or not?

If NOT then compare the modified code with the original, what did you change except the loops...

If YES then the original has the same error and you have to search for it and correct it...

 
Hi mikrom!
No, the original code is good and the problem was just the WHILE LOOP.
 
The program is working perfectly!!
Thank you guys!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top