Browse Source

Merge branch 'master' of gitlab.a-level.com.ua:Daria10/homework

Daria 4 years ago
parent
commit
6f0f41f2cc
4 changed files with 76 additions and 0 deletions
  1. 12 0
      js homework2/index.html
  2. 26 0
      js homework2/index.js
  3. 12 0
      js-homework2/index.html
  4. 26 0
      js-homework2/index.js

+ 12 - 0
js homework2/index.html

@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Document</title>
+    <script src="index.js"></script>
+</head>
+<body>
+    
+</body>
+</html>

+ 26 - 0
js homework2/index.js

@@ -0,0 +1,26 @@
+// let a = +prompt("enter your year of birth")
+// let b = 2020-a
+// alert("Your age:"+b) 
+
+
+
+// let t = +prompt("temperature in degrees Celsius")
+// let T = t*1.8+32
+// alert(T)
+
+// let x=+prompt("enter the numerator")
+// let y=+prompt("enter the denominator")
+// alert(Math.floor(x/y))
+
+
+// let n=+prompt("enter the namber");
+// if(n % 2==0){
+// alert("число четное");
+// }else{
+// alert("число нечетное")
+// }
+
+// let name = prompt("Enter your name")
+// alert("Hey,"+name+"!"+" How are you?")
+
+

+ 12 - 0
js-homework2/index.html

@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Document</title>
+    <script src="index.js"></script>
+</head>
+<body>
+    
+</body>
+</html>

+ 26 - 0
js-homework2/index.js

@@ -0,0 +1,26 @@
+// let a = +prompt("enter your year of birth")
+// let b = 2020-a
+// alert("Your age:"+b) 
+
+
+
+// let t = +prompt("temperature in degrees Celsius")
+// let T = t*1.8+32
+// alert(T)
+
+// let x=+prompt("enter the numerator")
+// let y=+prompt("enter the denominator")
+// alert(Math.floor(x/y))
+
+
+// let n=+prompt("enter the namber");
+// if(n % 2==0){
+// alert("число четное");
+// }else{
+// alert("число нечетное")
+// }
+
+// let name = prompt("Enter your name")
+// alert("Hey,"+name+"!"+" How are you?")
+
+