Create a Simple Interest Calculator in C Language with Free Codes

Index

Introduction – Interest Calculator

Hello Guys, here we are going to create a Simple Interest Calculator in C Language. Which is the basic project topic for beginner C Language Developer. So Here we create,

About Calculation

The Simple Interest is calculated using the formula : –

Interest Calculator
Free Q/A

Output

Here is the Output of the Simple Interest Calculator.

//Question to the User
Enter the principal amount: 120000
Enter the rate of interest (in percentage): 9
Enter the time period (in years): 2

//Output 
The simple interest is: 21600.00
Subscribe YouTube Channel

Project Codes

Here the complete codes of the Project,

#include <stdio.h>

int main() {
    float principal, rate, time, interest;

    // Input the principal amount
    printf("Enter the principal amount: ");
    scanf("%f", &principal);

    // Input the rate of interest
    printf("Enter the rate of interest (in percentage): ");
    scanf("%f", &rate);

    // Input the time period
    printf("Enter the time period (in years): ");
    scanf("%f", &time);

    // Calculate simple interest
    interest = (principal * rate * time) / 100;

    // Output the calculated interest
    printf("The simple interest is: %.2f\n", interest);

    return 0;
}

Join Telegram

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top