Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            MoneyEntry me = new MoneyEntry();

            Console.WriteLine("Hello");
            Console.Write("Enter sum: ");
            string amount = Console.ReadLine();

            Console.Write("Enter date: ");
            string date = Console.ReadLine();

            me.InitWithString(amount, date);

            Console.Write("Your Entry: ");
            Console.WriteLine(me.ToString());
            if (me.isDebit)
            {
                Console.WriteLine("You have debdt");
            }
            else
            {
                Console.WriteLine("You have income");
            }
            Console.ReadKey();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            MoneyEntry me = new MoneyEntry();

            Console.WriteLine("Hello");
            Console.Write("Enter sum: ");
            string amount = Console.ReadLine();
            Console.Write("Enter date: ");
            string date = Console.ReadLine();
            me.InitWithString(amount,date);

            Console.Write("Your Entry: ");
            Console.WriteLine(me.ToString());
            if (me.isDebit)
            Console.WriteLine("You have debdt");
            else
            Console.WriteLine("You have income");
            Console.ReadKey();
        }