Computer Science, asked by PRANAVPRADEEP6766, 1 year ago

Write a program which consist a function to find out the rate of interest with default arguments.

Answers

Answered by navja12
7

#include < istream.h >

#include < conio.h >

void main( )

{

Amount, principal ;

int time ;

float interest (float P, int t, float i ) ;

count << "Program for rate of interest calculation" <<end;

count << " Enter Principal amount:";

c in >>principal;

count << "Enter Time " ;

c in >>time;

rate=interest * 100/ (principal * time);

count <<" \The rate is:" <<Rate;

count <<"\ Press any key to continue";

ch( ) ;

}

float rate(float p, int t,float i)

{

return (  p+((p *r* t)/100 )) ;

}

Similar questions
Math, 6 months ago