Computer Science, asked by kalpana2006, 1 year ago

Write a program to calculate the compound interest.



I WILL MARK U AS THE BRAINLIEST........​

Answers

Answered by Anonymous
1

Answer:

#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=p*pow((1+r/100),t);

printf("Bank Loans Compound Interest = %f%",ci);

}

Answered by rupesh4726
2

Answer

Compound Interest = Principle * (1 + Rate / 100) time

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=p*pow((1+r/100),t);

printf("Bank Loans Compound Interest = %f%",ci);

}

1

2

3

4

5

6

7

8

9

10

11

12

#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=p*pow((1+r/100),t);

printf("Bank Loans Compound Interest = %f%",ci);

}

Output

Enter Principle, Rate and Time: 2000

2

3

Bank Loans Compound Interest = 2122.415771

Similar questions