19 lines
531 B
HTML
19 lines
531 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Recursive Programs: factorial</title>
|
|
<script src="../../konva.js"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<h1>Recursive Programs: factorial</h1>
|
|
<p>This is the animation of a recursive implementation of the factorial computation. Click the "next step" button to run the animation. <b>Note:</b> we assume the user calls fact(4).</p>
|
|
|
|
<button onclick="nextstep()">next step</button>
|
|
|
|
<div id="container"></div>
|
|
<script src="factorial.js"></script>
|
|
</body>
|
|
</html>
|