Write a C program to find the simple interest , given principle,rate of interest and times
by Nideesh C on April 11, 2011 · 1 comment
in C Programming
/* Write a C program to find the simple interest , given principle, rate of interest and times*/
#include <stdio.h>
#include <conio.h>
void main()
{
float p, r, si;
int t;
clrscr();
printf(“Enter the values of p,r and t\n”);
scanf (“%f %f %d”, &p, &r, &t);
si = (p * r * t)/ 100.0;
printf (“Amount = Rs. %5.2f\n”, p);
printf (“Rate = Rs. %5.2f%\n”, r);
printf (“Time = %d years\n”, t);
printf (“Simple interest = %5.2f\n”, si);
}
/*—————————–
Output
Enter the values of p,r and t
2000
8
3
Amount = Rs. 2000.00
Rate = Rs. 8.00%
Time = 3 years
Simple interest = 480.00
——————————*/
Not Satisfied ? Just search & get the result
Related posts:
- Router Clock Rate,Bandwidth and Encapsulation Configuration
- Sample – Program to write in different fonts on the screen.
- C program to find the area of a triangle, given three sides
- C program to find the area of a circle, given the radius
- Sample – Program to convert days into years and weeks.
Tagged as:
given principle,
rate of interest and times,
Write a C program to find the simple interest
Me, freelance system administrator having the qualification of Diploma in Electronics & Tele-communication + MCSE + CCNA + CST + 5 years of experience in IT field.
If you like This post, you can follow TheOnlineTutorials on Twitter.
Contact me Via email: support@theonlinetutorials.com
Subscribe to feed via Feed or EMAIL to receive instant updates.
Legal Disclaimer:All information found on the site is without any implied warranty of fitness for any purpose or use whatsoever. Content author/site administrator is not responsible for any loss occurred due to mistakes in this tutorial. Use this tutorial website at your own risk.
{ 1 trackback }