-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathp88.html
More file actions
38 lines (30 loc) · 1.05 KB
/
p88.html
File metadata and controls
38 lines (30 loc) · 1.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Max method</title>
<script>
function mathFunction() {
itm1 = document.getElementById('inp1').value;
itm2 = document.getElementById('inp2').value;
itm3 = document.getElementById('inp3').value;
itm4 = document.getElementById('inp4').value;
res = itm1* Math.PI/180
//res = Math.round(itm1);
//res = Math.pow(itm1,itm2)
//res = Math.max(itm1,itm2,itm3,itm4)
//res = Math.min(itm1,itm2,itm3,itm4)
document.getElementById('output').value = res;
}
</script>
</head>
<body>
<h1> Example of math function max(x) </h1>
Input1:<input type="text" id="inp1" value=""/> <br>
Input2:<input type="text" id="inp2" value=""/><br>
Input3:<input type="text" id="inp3" value=""/><br>
Input4:<input type="text" id="inp4" value=""/><br>
Output:<input type="text" id="output" value=""/><br>
<input type="button" onclick="mathFunction();" value="Get max">
</body>
</html>