Teachers
Showing posts with label
interest
.
Show all posts
Showing posts with label
interest
.
Show all posts
Thursday, February 12, 2015
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("
SI=%f",si);
getch();
//to stop the screen
}
Read more »
Older Posts
Home
Subscribe to:
Posts (Atom)