int main()
{
int p,n,count;
float r,si;
count=1;
while(count<=3)
{
printf("\n enter values of p,n,andr");
scanf("%d %d %f",&p, &n, &r);
si=(float)p * (float)n * r / 100;
printf("simple interest =rs. %f",si);
count=count+1;
}
return(0);
}
Nishant:this will give S.I...
-----------------------------------------------------------------------------------------------------
//mycfiles.wordpress.com
//Program for Calculate Simple Interest
#include<stdio.h>
#include<conio.h>
void main()
{
float p,r,n,si;
clrscr();
printf("\nEnter the profit, rate & no of yr\n\n ");
scanf("f%f",&p,&r,&n);
si=(p*r*n)/100;
printf("\nSimple Intrest=%f",si);
getch();
}
Reference:cprogramming-bd.com/c_page1.aspx#simpleinterest
you can use strstr()
n1=val(text1.text) n2=val(text2.text) n3=val(text3.text) text4.text=(n1*n2*n3)/100
you can find a sample paper with the brochur. That was the oly guide line we had.
Write a simple program to find out how many of the numbers from 1 to 10 is greater than 4.
Reference:cprogramming-bd.com/c_page1.aspx#simpleinterest
If you are working on simple interest you have to write the equation I=p. r.t
There are many simple interest calculators online that you can find. I found the one at http://easycalculation.com/simple-interest.php to be simple and accurate.
the formula for simple interest is I=PRT (interest=principal x rate x time )
you can use strstr()
time(t)= interest/rate , princaple
Multiply together the capital, the interest rate (as a fraction) and the number of periods to find out the interest.
The answer depends on what information you do have.
If you are looking for an online simple interest calculator there are several sites that you can find this on. One site where you can is called Easy Calculation and will give you all the tools you need.
simple interst is when you earn interest from your principal but compound interest is when you earn interest from your principal as well as from your previous interest
P*r*t divided by 100
First you figure out the Principal, then you find the interest rate and then find the Time someone gave you to pay back loaned or borrowed money.Formula: Simple Interest= Principal*Rate*TimeExample: Principal-$25,000 Interest Rate- 6.25 simple interest- 6 years$25,000 x .0625 x 6= $9375!