Random random = new Random();int daysUntilExpiration = random.Next(12);int discountPercentage = 0;test.method();// Your code goes hereif (daysUntilExpiration > 11){ Console.WriteLine("Your subscription will expire soon. Renew now!");}else if (daysUntilExpiration > 5){ discountPercentage = 10; Console.WriteLine($"Your subscription expires in {daysUntilExpiration} days. Renew now and save {discountPercentage}%!");}else if (daysUntilExpiration > 1){ discountPercentage = 20; Console.WriteLine($"Your subscription expires in {daysUntilExpiration} days. Renew now and save {discountPercentage}%!");}else if (daysUntilExpiration == 1){ discountPercentage = 20; Console.WriteLine("Your subscription expires within a day! Renew now and save {discountPercentage}%!");}else{ Console.WriteLine("Your subscription has expired.");}public class class2 { { }}
using System;public class Program{ public class Calculator { public int Add(int num1, int num2) { return num1 + num2; } } static void Main() { Calculator calculator = new Calculator(); int result = calculator.Add(5, 10); Console.WriteLine("The sum is: " + result); }}