Friday, January 18, 2013

C Language Example # 06 Find Simple Interest In = PRN/100

C Language Example # 06  Find Simple Interest Using C Interest = PRN/100

Lets find the Simple Interest, Its very simple one !

C Language Code:

//Written by Latest Technology Guide    
//Title : Example 06 :  Find Simple Interest In = PRN/100.
  

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int n;
float p,r,si;

printf("\nEnter Principal        :");
scanf("%f",&p);

printf("\nEnter Rate of Interest :");
scanf("%f",&r);

printf("\nEnter Number of Years  :");
scanf("%d",&n);

si=p*r*n/100.0;
printf("============================");
printf("\n\nSimple Interest is : %.2f",si);

getch();
}




Output:

We think there is no need of Output for this program.


--------------------------------------------------------------------------------
Explanation of C Language Example # 0 Find Simple Interest Using C Interest = PRN/100

* Enter Principal Amount, Rate of Interest and years.
* Program will calculate the Simple Interest.
* Formula for Simple Interest is SI = prn/100.

Note: All programs are developed and tested using Turbo C++ 3.0 under Windows XP. We just want to provide guidelines to the users. If you are using any other Compiler or other operating system they you need to modify this program as per your requirements. 

No comments:

Post a Comment