-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask5-18.html
More file actions
51 lines (49 loc) · 1.27 KB
/
task5-18.html
File metadata and controls
51 lines (49 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!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>Document</title>
</head>
<body>
<p>
Задача 5
</p>
<p>
<script>
let a=4, b=3;
console.log(a> 2 && b<=3);
document.write(a> 2 && b<=3);
alert(a> 2 && b<=3)
</script></p>
<p>
Задача 6
</p>
<p>Дано целое число. Если оно является положительным, то прибавить к нему 1, в противном случае не изменять его. Вывести полученное число.</p>
<script>
let n=53;
if (n>0) {
n++
document.write(n)
} else {document.write(n)}
</script>
<p>Задача 16</p>
<P>
<script>
let x=2;
a=18 * (x + 7);
document.write(a)
</script>
<p>Задача 18</p>
<script>
let m = 'меню';
let srt = 'главное ' + m;
let an = 'лиса ' + 'и ' + 'медведь';
document.write(srt);
document.write(an);
document.write(m)
</script>
</P>
</body>
</html>