Calculate Simple Interest in C# – Programming, Pseudocode Example, C# Programming Example
C# C# Console

Calculate Simple Interest in C#

In this example i’ll show you, how to find simple interest in C#.

This is a simple C# program that calculates the total amount of a loan given the principal amount, the number of years, and the rate of interest. When the program is run, it prompts the user to enter the loan amount, the number of years, and the rate of interest.

It then calculates the interest on the loan by multiplying the principal amount by the number of years by the rate of interest and divides the result by 100. The total amount of the loan is calculated by adding the interest to the principal amount.

Finally, the program outputs the total amount of the loan to the console and waits for the user to press the Enter key before ending.

Output:

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.