public static void Main()
double ticketPrice = 40.0;
Console.WriteLine("Welcome to the cinema! Ticket price is = "+ticketPrice+" Shekel(s).");
Console.WriteLine("How many ticket would you like to buy?");
ticketAmount = Convert.ToInt32(Console.ReadLine());
totalPrice = ticketPrice * ticketAmount;
Console.WriteLine("Your total price is = "+totalPrice);
Console.WriteLine("Please enter payment amount:");
userPayment = Convert.ToDouble(Console.ReadLine());
if (userPayment == totalPrice) {
Console.WriteLine("Payment complete. Thank you! Your "+ticketAmount+" tickets will be waiting for you at the box office.");
else if (userPayment < totalPrice){
paymentDeviation = totalPrice-userPayment;
Console.WriteLine("Payment failed. Missing amount of "+paymentDeviation+" Shekel(s) to your payment.");
paymentDeviation = userPayment - totalPrice;
Console.WriteLine("Payment complete. Thank you! Your "+ticketAmount+" tickets will be waiting for you at the box office.");
Console.WriteLine("You will receive back "+paymentDeviation+" Shekel(s) at the box office.");