Write a C# program that outputs the cost of that item after the specified number of years. Having the user input the annual inflation rate, the cost of the item, and the number of years.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication5
class Program
static void Main(string[] args)
double cost, intr, tint;
int year;
Console.WriteLine("Enter The Cost of Item");
cost = double.Parse(Console.ReadLine());
Console.WriteLine("Enter The Intrest Rate percentage");
intr = double.Parse(Console.ReadLine());
intr = intr / 100;
Console.WriteLine("Enter The number of Years");
year = Int32.Parse(Console.ReadLine());
tint = (cost * intr) * year;
cost = cost + tint;

Console.WriteLine("Cost of Item after {0} years= {1}", year, cost);