Last active
June 26, 2019 05:17
-
-
Save Kkan9ma/0940953c2cf5b915238f543113f608ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
</head> | |
<body> | |
<h2>연습문제 1-1</h2> | |
<script> | |
var a = prompt("첫 번째 수를 입력하세요"); | |
var b = prompt("두 번째 수를 입력하세요"); | |
var a1 = Number(a); | |
var b1 = Number(b); | |
console.log("덧셈 결과" + " = " + (a1 + b1)); | |
console.log("뺄셈 결과" + " = " + (a1 - b1)); | |
console.log("곱셈 결과" + " = " + (a1 * b1)); | |
console.log("나눗셈 결과" + " = " + (a1 / b1)); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment