Random random = new Random();
int kalan = random.Next(12);
int discountPercentage = 0;
if(kalan == 0)
{
Console.WriteLine("Your subscription has expired.");
}
else if(kalan == 1)
{
Console.WriteLine("Your subscription expires within a day!");
discountPercentage = 20;
}
else if(kalan <= 5)
{
Console.WriteLine($"Your subscription expires in {discountPercentage} days.");
discountPercentage = 10;
}
else if(kalan <= 10)
{
Console.WriteLine("Your subscription will expire soon. Renew now!");
}
if (discountPercentage > 0)
{
Console.WriteLine($"Renew now and save {discountPercentage}");
}