The C Programs
An ultimate blog where you can find almost all C programs.....!!
Pages
Home
Contact Us
Tuesday 26 June 2012
C program to calculate simple interest
#include<stdio.h>
#include<conio.h>
void main()
{
float p,r,t,si;
clrscr();
//to clear the screen
printf("Enter principal,rate and time;");
scanf("%f%f%f",&p,&r,&t);
si=(p*r*t)/100;
printf("\nSI=%f",si);
getch();
//to stop the screen
}
C program to calculate simple interest
2012-06-26T00:49:00-07:00
Neeraj Mishra
Basic|
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)