Esempio n. 1
0
        static void Main(string[] args)
        {
            RomanConverter converter = new RomanConverter();

            for(int number = 1; number <= 3000; number ++)
                Console.WriteLine(number + ": "+ converter.ToRoman(number));
            Console.ReadKey();
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Please enter a decimal to convert!");

            var            consoleReader  = new ConsoleReader();
            var            _userInput     = new UserInput(consoleReader);
            var            currentNumber  = _userInput.GetInput();
            RomanConverter romanConverter = new RomanConverter(new UserInput(consoleReader));

            Console.WriteLine("As Roman Numeral: {0}", romanConverter.ToRomanNumeral(currentNumber));
        }