Browse Source

TLHB7WB31SO

oleg_popov 1 year ago
commit
0e13d90900
1 changed files with 24 additions and 0 deletions
  1. 24 0
      HW1/index.html

+ 24 - 0
HW1/index.html

@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+    <meta charset="UTF-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Hw1</title>
+</head>
+
+<body>
+    <script>
+        var volt = 1000;
+        var voltValue;
+        do {
+            alert("Перевод милливольты в вольты")
+            milliValue = prompt("Введите число милливольт.", "");
+            voltValue = milliValue / volt;
+            alert(voltValue + "V");
+        } while (milliValue !== null)
+    </script>
+</body>
+
+</html>