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()
Here's a simple Perl program to calculate simple interest: use strict; use warnings; sub simple_interest { my ($principal, $rate, $time) = @_; return ($principal * $rate * $time) / 100; } my $principal = 1000; # Example principal amount my $rate = 5; # Example interest rate my $time = 2; # Example time in years my $interest = simple_interest($principal, $rate, $time); print "Simple Interest: $interest\n"; This program defines a function to calculate simple interest and then prints the result for given principal, rate, and time values.
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.
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
Here's a simple Perl program to calculate simple interest: use strict; use warnings; sub simple_interest { my ($principal, $rate, $time) = @_; return ($principal * $rate * $time) / 100; } my $principal = 1000; # Example principal amount my $rate = 5; # Example interest rate my $time = 2; # Example time in years my $interest = simple_interest($principal, $rate, $time); print "Simple Interest: $interest\n"; This program defines a function to calculate simple interest and then prints the result for given principal, rate, and time values.
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