function do_multiply($a, $b)
{
$res = 0;
while($b > 0) {
$res += $a;
$b = $b-1;
}
return $res;
}
4
solved mulpicaton by addition [closed]
function do_multiply($a, $b)
{
$res = 0;
while($b > 0) {
$res += $a;
$b = $b-1;
}
return $res;
}
4
solved mulpicaton by addition [closed]