Skip to main content

C program to calculate Compound Interest.

C program to calculate Compound Interest

program:2
Write a C program to input principle (amount), time, and rate (P, T, R) and find Compound Interest. How to calculate compound interest in C programming. Logic to calculate compound interest in the C program.
Compound Interest formula

Formula to calculate compound interest annually is given by.

Compound Interest formula (anually)

Where,
P is principle amount
R is the rate and
T is the time span




Comments

Popular posts from this blog

what is a algorithm? Its properties and give examples.

  • An algorithm is a step by step process to solve a problem using  a finite number of steps. Algorithms are used in mathematical  computing etc to carry out calculations or data processing. • The algorithm is developed using pseudocode. • Pseudocode: It is an artificial and informal language that helps  programmers to develop algorithms.    • Pseudocode programs are not executed on computers but they  are used in developing algorithms.   The algorithms must satisfy the following properties Properties of Algorithms • Input – the algorithm must accept zero or more inputs. • Output - must produce at least one output. • Definiteness -Each instruction is clear. • Finiteness -An algorithm should terminate after a finite  number of steps. It should not enter into an infinite loop. • Effectiveness – Each operation must be simple and should complete  in a finite time algorithm : examples of algorithms: 1.Addition of two numbers Step 1: Start St...

write a c program to find a distance when initial velocity ,acceleration and time is given.

 c program is a beginner's program language. If you want to learn c program language click here for notes . I will publish the programs daily check out and practice for a better result, practice makes a man perfect. practice program 1 : write a program to find a distance when initial velocity, acceleration, and time are given.