Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
C Program for FUNCTION OF COMPOUND INTEREST
float ci(float,float,float);
void main()
{
float p=0,r=0,n=0,k=0;
clrscr();
printf("ENTER THE PRINCIPAL: ");
scanf("%f",&p);
printf("ENTER THE RATE OF INTEREST= ");
scanf("%f",&r);
printf("ENTER THE PERIOD= ");
scanf("%f",&n);
k=ci(p,r,n);
printf("THE COMPUND INTEREST IS %f",k);
getch();
}
float ci(float p,float r,float n)
float k=0,t=0;
for(t=1;t<=n;t++)
k=(p*r)/100;
p=p+k;
return(k);
OUTPUT :
ENTER THE PRINCIPAL : 10000
ENTER THE RATE OF INT : 5
ENTER THE PERIOD : 10
THE COMPOUND INTEREST IS 775.664062
Mathematical Statements and assignments Within C we can directly load up the variable from within the program using the mathematical expression equates (=) e.g. a= 'h'
#C Why don''t online compilers support the header file? What can I do to resolve this? PS. I have tried , does''nt work either. Thannk in advance.
A constructor that accepts one argument of a dissimilar type.
how to create a shopping cart
Described the difference among "new" and "operator new" ? A:"operator new" works such as malloc.
Program is to take two arguments and returns the string: Program is to take two arguments and returns the string which is larger the larger string has larger ascii value invok
Create an array of Strings and fill it with some interesting text, such as vacation destinations, album names, or weapon names from a CRPG. Display three elements of the array on t
main() { int a[5]={1,3,6,7,0}; int *b; b=&a[2]; } The value of b[-1] is
Rahul is a newbie to the programming and while learning the programming language he came to know the following rules: ???• Each program must start with ''{'' and end with '
Ques.Implement a c/c++ program to find a shortest path between two nodes in a network?network should be taken as an adjacency matrix.
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd