Simple interest program in c || Basic programs || C programming
In this, we are going to write a program to find simple interest in C.
#include <stdio.h>
int main()
{
    float principle, time, rate, SI;

    // Input principle, rate and time 
    printf("Enter principle (amount): ");
    scanf("%f", &principle);

    printf("Enter time: ");
    scanf("%f", &time);

    printf("Enter rate: ");
    scanf("%f", &rate);

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

    // Print the resultant value of SI 
    printf("Simple Interest = %f", SI);

    return 0;
}

//.....Coded by JAIDEEP JAMBLE

#ENJOY CODING

Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post