-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path2.html
More file actions
46 lines (41 loc) · 815 Bytes
/
Copy path2.html
File metadata and controls
46 lines (41 loc) · 815 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>function</title>
</head>
<body>
<script>
function plus(a, b){
var summa=a+b;
return summa;
}
function minus(a, b) {
if (a >= b) {
var raznica = a-b;
}
else{
raznica=b-a;
}
return raznica;
}
function multi(a,b){
var multipli=a*b;
return multipli;
}
function division(a,b){
if(b!=0) {
var divis=a/b;
return divis;
}
else{
return "Error";
}
}
document.write(plus(5,6)+"<br>");
document.write(minus(777,10)+"<br>");
document.write(multi(4,35)+"<br>");
document.write(division(5,10)+"<br>");
</script>
</body>
</html>