PROCEDURE:-
CODE:-
#include<stdio.h>
#include<conio.h>
void main()
{
int p,t,r;
float si;
printf(“enter values p,t,r”);
scanf(“%d %d %d”, &p,&t,&r);
si=(p*t*r)/100.0;
printf(“\n Simple interest is = Rs .%f”, si);
}
Input: - enter values p,t,r
P=10000, t=10, r=3
Output:- Simple interest is =Rs.3000
- input values for principal amount, time,rate of interest
- find simple interest with the formulae (p*t*r)/100
- print the above result
CODE:-
#include<stdio.h>
#include<conio.h>
void main()
{
int p,t,r;
float si;
printf(“enter values p,t,r”);
scanf(“%d %d %d”, &p,&t,&r);
si=(p*t*r)/100.0;
printf(“\n Simple interest is = Rs .%f”, si);
}
Input: - enter values p,t,r
P=10000, t=10, r=3
Output:- Simple interest is =Rs.3000
Comments
Post a Comment