Customers of 65 years and over are entitled to discount of 20% on all purchases from an online shopping site. Write compile and test a program which will read in a customer’s age, and inform them whether or not they are entitled to discount on purchases.
I have this so far
namespace Practise1d
{
class Program
{
static void Main(string[] args)
{
int age = 0;
Console.WriteLine("Please enter your age:");
Console.ReadLine();
if (age >= 65)
{
Console.WriteLine("You are entitled to discount");
Console.ReadLine();
}
else
{
Console.WriteLine("You are not entitled to discount");
Console.ReadLine();
}
}
}
}
no mater what age I put in it says you are not entitled to discount.