안효원 안효원 2022-01-12
realCommit
@2fd7965d284ab0a67d03367e069b705d68f07383
 
gugudan.php (added)
+++ gugudan.php
@@ -0,0 +1,24 @@
+<!doctype html>
+<html lang="ko">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport"
+          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
+    <meta http-equiv="X-UA-Compatible" content="ie=edge">
+    <title>Document</title>
+</head>
+<body>
+    <form action="gugudan.php" method="get">
+        단수 입력 : <input type="text" name="dan">
+        <input type="submit" value="Send">
+    </form>
+    <div>
+        <?php
+            $dan = $_GET['dan'];
+            for($i = 1; $i <= 9; $i++){
+                echo $dan . "X" . $i . "=" . ($dan * $i) . "<br>";
+            }
+        ?>
+    </div>
+</body>
+</html>(No newline at end of file)
Add a comment
List