<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script type="text/javascript">
function getgongyueshu(a, b) {
if(b == 0 || a==0) {
return 0;
}
return getgongyueshu(b, a % b)
}
var a = 8693724
var b = 92356
var gongyueshu = getgongyueshu(b, a)
console.log(a + "和" + b + "的" + "最大公约数是:" + gongyueshu)
var gongbeishu = a * b / gongyueshu
console.log(a + "和" + b + "的" + "最小公倍数是:" + gongbeishu)
</script>
</body>
</html>