ebob-ekok.htm dosyası ;

<form action="ebob-ekok.php" method="POST">
<input type="input" name="s1">
<input type="input" name="s2">
<input type="submit" value="ebob">
ebob-ekok.php dosyası ise şu şekilde ;

<?php
$sayi1 = $_POST["s1"];
$sayi2 = $_POST["s2"];
if($sayi1>=$sayi2) {
$sayi3 = $sayi1;
}else{
$sayi3 = $sayi2;
}
while($1%$3 != 0 and $2%$3 != 0) {
$3 = $3-1;
if($1%$3 == 0 and $1%$3 == 0){
echo "ebob ".$3." <br>";
exit;
}
}
?>
dene bakalım bunu, hızlı hızlı yazdım denemedim. ekok'u da aynı mantıkla yapabilirsin.