belongs to collection: Basic C Programs for Practice
Write A Program For Calculate A Simple Interest .Given Formula Show that to Calculate a Simple Interest .
With the following formula you can can calculate a Simple Interest Of Amount Given By User Input
Formula :
Simple Interest = ( Amount * Rate * Time ) / 100;
#include<stdio.h> int main() { float amount, rate, time, si; printf("\nEnter Principal Amount : "); scanf("%f", &amount); printf("\nEnter Rate of Interest : "); scanf("%f", &rate); printf("\nEnter Period of Time : "); scanf("%f", &time); si = (amount * rate * time) / 100; printf("\nSimple Interest : %f", si); return(0); }
Output:
Enter Principal Amount : 5669.56
Enter Rate of Interest : 5.6
Enter Period of Time : 3.0
Simple Interest : 952.486084
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Output:
Enter Principal Amount : 5669.56
Enter Rate of Interest : 5.6
Enter Period of Time : 3.0
Simple Interest : 952.486084
need an explanation for this answer? contact us directly to get an explanation for this answer