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);


C# program to calculate Simple Interest Output:


Best quality Asp .Net Ajax Control Toolkit tutorials.

Give your valuable comments.

5 + 3 =

About Us | Terms of Use | Privacy Policy | Disclaimer | Contact Us Copyright © 2012-2024 CodingFusion
50+ C# Programs for beginners to practice