Arabic to roman
-
I want to write a console application, Which will convert arabic numbers to roman. But the problem is in roman 5000,10000 etc will be represented as V and a "-" symbol upon V..but i dont how to get these characters please let me know how to write a string a "-" upon them. Please note that this is for console application Its very urgent
-
I want to write a console application, Which will convert arabic numbers to roman. But the problem is in roman 5000,10000 etc will be represented as V and a "-" symbol upon V..but i dont how to get these characters please let me know how to write a string a "-" upon them. Please note that this is for console application Its very urgent
-
Sounds like a class assignment for a computer science class... GetOn&GetGoing wrote: 5000,10000 etc will be represented as V and a "-" symbol upon V What do you mean, the fact that the roman numeral for five is a V with exaggerated serifs?
Ya i got it... But how you will represnt 5000 you cant represent with "MMMMM", you should represnt as V and a "-" on that, i dont know how to print this kind of special characters in console application.
-
Ya i got it... But how you will represnt 5000 you cant represent with "MMMMM", you should represnt as V and a "-" on that, i dont know how to print this kind of special characters in console application.
Ok, so a horizontal line over the roman numeral V is supposed to represent the fact that the number is multiplied by 1000. I think that that usage isn't really in vogue any more, but if it is necessary, how about writing an underscore ("_") on the line above the value?
-
Ok, so a horizontal line over the roman numeral V is supposed to represent the fact that the number is multiplied by 1000. I think that that usage isn't really in vogue any more, but if it is necessary, how about writing an underscore ("_") on the line above the value?
Ya that will be fine with me... But how to do that for a consle application
-
Ya that will be fine with me... But how to do that for a consle application
Ok, you know that you generate output in a console application with
Console.Write()
andConsole.WriteLine()
, right? So, figure out which position of your roman number is the 1000's, then write an underscore on the line before you write the roman numerals: Console.WriteLine("_"); Console.WriteLine("VCXIX"); :doh: