Größter gemeinsamer Teiler (ggt) |
|
|
|
|
<script type="text/javascript">
<!--
function Start()
{
var z1,z2;
var z;
z1=parseInt(window.document.forms[0].elements[0].value);
z2=parseInt(window.document.forms[0].elements[1].value);
z=ggt(z1,z2);
window.document.forms[0].elements[2].value=z;
}
function ggt(a,b)
{
var r;
do
{
r = a % b;
a=b;
b=r;
}
while (r>0);
return a;
}
-->
</script>
|
| xxx |
| xxx |