C# program to calculate Simple Interest
In this C# program, we will take the input "Principal Amount", "Interest Rate" and "Time" from the user and calculate the simple interest.
C# program to calculate Simple Interest Code:
private static void Main(string[] args)
{
decimal Principal, Rate,Time,SimpleInterest;
Console.Write("Enter the Principal Amount: ");
Principal= decimal.Parse(Console.ReadLine());
Console.Write("Enter the Rate Of Interest: ");
Rate = decimal.Parse(Console.ReadLine());
Console.Write("Enter the Time: ");
Time = decimal.Parse(Console.ReadLine());
SimpleInterest = Math.Round((Principal*Rate*Time) / 100,2);
Console.WriteLine("Simple Interest is: {0}", SimpleInterest);
Console.ReadLine();
}
C# program to calculate Simple Interest Output: