+ 1
Need help
void f_3(float x,int &sum){ int fm = x*2/100; for(int i=0;i<=5;i++){ sum=x+fm; sum++; cout<<"sum now "<<sum<<endl; } } int main(){ int b,z; cout<<"deposit money atleast 500PKR "<<endl; cin>>b; f_3(b,z); }
3 Answers
0
I want to make a function whose output is like:
Month 1:money 100
Month 2: money 100+(100*2/100)
Month 3: money 102+(102*2/100)
0
Thanks alot