<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
const num = Number(prompt('숫자를 입력해주세요.'));
if (num % 2 === 0) {
document.write("입력한 숫자는 짝수입니다.");
}
else {
document.write("입력한 숫자는 홀수입니다.");
}
</script>
</body>
</html>