复利计算计算器
Here you will get C program to calculate compound interest.
在这里,您将获得C程序来计算复利。
The program asks user to enter value of principle (p), rate (r) and time (t) and finally calculates the compound interest by following formula.
该程序要求用户输入原理值(p),速率(r)和时间(t),最后通过以下公式计算复利。
Compound Interest = Principle * (1 + Rate / 100) time
复利=本金*(1 +利率/ 100)时间
C程序计算复利 (C Program to Calculate Compound Interest)
#include<stdio.h>
#include<math.h>
void main()
{
float p,r,t,ci;
printf("Enter Principle, Rate and Time: ");
scanf("%f%f%f",&p,&r,&t);
ci