delenec = a; podil = 0; while (a >= b) { a = a - b; podil++; } alert (delenec.toString() + " / " + b.toString() + " = " + podil.toString());