Skip to content

Commit 706702d

Browse files
committed
Задание 3 к 2 уроку
1 parent e85553e commit 706702d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

hm2-3.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<meta charter="utf8">
2+
3+
<script>
4+
let a = -5;
5+
let b = -3;
6+
7+
if (a >= 0 && b >= 0) {
8+
console.log(a - b);
9+
} else if (a < 0 && b < 0) {
10+
console.log(a * b);
11+
} else {
12+
console.log (a + b);
13+
}
14+
</script>

0 commit comments

Comments
 (0)