public static void Main()
Console.WriteLine("Hello, and welcome to the Purchase Calculator!");
Console.WriteLine("Please enter the price of a purchased item (-1 to stop the calculations): ");
itemPrice = int.Parse(Console.ReadLine());
Console.WriteLine("This item's cost is: " + itemPrice);
itemDiscount = itemPrice - (itemPrice * 0.10);
itemDiscount = itemPrice;
Console.WriteLine("The item's discounted cost is: " + itemDiscount);
grandTotal = grandTotal + itemDiscount;
Console.WriteLine("Please enter the price of a purchased item (-1 to stop the calculations): ");
itemPrice = int.Parse(Console.ReadLine());
Console.WriteLine("Your grand total comes out to be: " + grandTotal);