Zitat von Blackbelttcon
hey alright i have another problem, ive been going good on this piece of code, but then i ran into a problem. i run this code using 200 as price, 30 as amount, and 50 as price, the result should equal 50, but it comes out as 200, wut went wrong..
int price= 0;
double result;
int amount;
int max;
result= pow(10, (-amount/max))* price ;
cout<<" The Price we found for your commodity is "<< result <<"."<<endl;
i have no idea what went wrong, i use a calculator, and i get 50, can anyone help. thanks