<?php finder(16, 64); function finder($add,$product) { $inside_root = $add*$add - 4*$product; echo("Root = $inside_root\n"); if($inside_root >=0) { $b = ($add + sqrt($inside_root))/2; $a = $add - $b; echo "$a+$b = $add and $a*$b=$product\n"; }else { echo "No real solution\n"; } } ?>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more