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(); }
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(); }