18.02.2016, 14:39
Quote:
Both warnings are pretty self-explanatory. Do you mind showing what's inside the for loop?
|
Код:
stock stockname(param) { new i=1, mp=4, pp=2, total=0; for(;;i++) { total += (i * mp) + pp; if(total >= param) return i; } //return -1; }