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...

leap year program in java language for btech students in a easy approach.

  Java Program to Find if a given Year is a Leap Year for BTech CSE students. Leap Year contains 366 days, which comes once every four years. Every leap year corresponds to these facts :  A century year is a year ending with 00. A century year is a leap year only if it is divisible by 400. A leap year (except a century year) can be identified if it is exactly divisible by 4. A century year should be divisible by 4 and 100 both. A non-century year should be divisible only by 4. https://ide.geeksforgeeks.org/S3DSLXo19k <<<<<<< check out the program in the compiler for clarity.