Finding Compound Interest In C Programming Tamil


How to find the Compound Interest using C Programming.

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
	float a,p,q,n,r;
	int i;
	for(i=0;i<1;i++)
	{
		clrscr();	//clears the output screen
		printf("\n Enter the Principle Amount :");
		scanf("%f",&p);
		printf("\n Enter the Rate Of Interest :");
		scanf("%f",&r);
		printf("\n Enter the Number of Years :");
		scanf("%f",&n);
		printf("\n Enter the Compunding Period :");
		scanf("%f",&q);
		a=p*pow((1+(r/q)),(n/q));     //pow(a,b)
		printf("\n Total Amount :%f",a);
	}
	getch();		
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming