Wednesday, 10 September 2014

Simple Interest Calculation Program in C Language with Example

C program for simple interest calculation in an easy way. The questions may be asked for this C program is, Write a simple interest calculation program in C language. & find the simple interest using C source code. It is an useful C program for beginners.     

SIMPLE INTEREST CALCULATION IN C

It is a simple interest calculation in C program. It used to find a simple interest value of a product based on one common formula (principle amount*rate*time/100). In this, first multiply the principle amount, time and rate then divide by 100 then finally getting the values are called as simple interest calculation.

//Header files
#include<stdio.h>
#include<conio.h>
 
Void main()
{
clrscr(); //This function will clear previous output
 
//Programe variable
float PAmount,rate,time;
float SIntrest;
 
printf("\t\t Simple Intrest Calculation"); //Display function
printf("\n\nEenter PAMOUNT : ");
scanf("%f",&PAmount); //Getting input function
printf(" Enter RATE \t\t: ");
scanf("%f",&rate);
printf("Enter TIME \t\t: ");
scanf("%f",&time);
 
//Intrest calculation function
SIntrest=(PAmount*rate*time)/100//Basic formula for simple interest calculation
printf("value of SIMPLE INTREST is =%f",SIntrest);
getch();
return(0);
}

No comments:

Post a Comment

Note: only a member of this blog may post a comment.