Write a program to find Simple Interest in C Language - Program of Simple Interest in C - Simple Interest Program in C

 Program of Simple Interest in C Language


#include<stdio.h>

int main()

{

    float amount, rate, time;

    int SI;

    printf("Enter the Principal Amount = ");

    scanf("%f", &amount);

    printf("\nEnter the Rate of Interest = ");

    scanf("%f", &rate);

    printf("\nEnter the Period of Time = ");

    scanf("%f", &time);

    SI = (amount * rate * time) / 100;

    printf("\nSimple Interest is : %d\n", SI);

    return(0);

}

इस कोड को हमने CODEBLOCK पर बना कर run किया है


OUTPUT

Comments