CProgram

# Program to find Simple Interest and Compound Interest

C Program to find Simple Interest and Compound Interest.

/*Program to find Simple Interest and Compound Interest
SI = (p * r * t) / 100
CI = p * pow((1 + r/100), t) – p*/
#include <stdio.h>
#include <math.h>
main()
{
float p, r, t, si, ci;
printf(“\nEnter priciple, rate and time: “);
scanf(“%f %f %f”, &p, &r, &t);
si = (p * r * t) / 100;
ci = p * pow((1 + r/100), t) – p;
printf(“\n\nSimple Interest: %.2f”, si);
printf(“\n\nCompound Interest: %.2f”, ci);
getch();
}

Excited
0
Happy
0
In Love
0
Not Sure
0
Silly
0

C

C

C

### Reverse the order of each word of the string using pointers

Write a C program to reverse the order of each word of the string using ...

### Convert temperature from degree centigrade to Fahrenheit

Write a C program to convert temperature from degrees Centigrade to Fahrenheit. #include<stdio.h> int main() { float celsius, fahrenheit; ...

### Program to find Average of three Real Numbers

Write a C program to an average of three real numbers. #include <stdio.h> main() { ...

### Find Area of Square & Circumference of a Circle

Write a C program to find the area of a square & circumference of a ...