Convert Roman Numeral to number in C#
Roman numeral to number in c# public static int pairConversion(int dec, int lastNum, int lastDec) { if (lastNum > dec) return lastDec - dec; else return lastDec + dec; } public static int ConvertRomanNumtoInt(string strRomanValue) { var dec = 0; var lastNum = 0; foreach (var c in strRomanValue.Reverse()) { switch (c) { case 'I': ...