Skip to content

Instantly share code, notes, and snippets.

@Kkan9ma
Created June 26, 2019 05:15
Show Gist options
  • Save Kkan9ma/47191819b9af7df10a42878c21bd2177 to your computer and use it in GitHub Desktop.
Save Kkan9ma/47191819b9af7df10a42878c21bd2177 to your computer and use it in GitHub Desktop.
<!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-3: 화씨를 섭씨로 바꿔주는 계산기</h2>
<script>
var fah = prompt("현재 화씨를 입력하세요");
var fah_Number = Number(fah);
var centi = (fah_Number - 32) /1.8;
document.write("현재 온도는" + "섭씨" + centi + "도입니다." );
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment