-
Notifications
You must be signed in to change notification settings - Fork 0
/
hypoteneus.html
40 lines (36 loc) · 1.79 KB
/
hypoteneus.html
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
<!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">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="main.css">
<title>Hypotenuse</title>
</head>
<body>
<div class="heading">
<a href="index.html"> <button class="button goback">Go Back</button></a>
<h3>Hypotenuse</h3>
</div>
<div class="center container-fluid">
<form>
<div class="form-group row">
<label for="inputEmail3" class="col-sm-2 col-form-label">a=</label>
<div class="col-sm-10">
<input type="number" class="form-control" id="a" oninput="validity.valid||(value='');" placeholder="Enter value of a">
</div>
</div>
<div class="form-group row">
<label for="inputPassword3" class="col-sm-2 col-form-label">b=</label>
<div class="col-sm-10">
<input type="number" class="form-control" id="b" oninput="validity.valid||(value='');" placeholder="Enter value of b">
</div>
</div>
<center><div class="button" id="hypo" >Submit</div></center>
<h5> Hypoteneus will be calculated here: </h5>
<center><div class="" id="hyporesult"style="font-size:2rem; margin:2rem"><b>c = sqrt(a<sup>2</sup>+b<sup>2</sup>)</b></div></center>
</div>
<script src="index.js"></script>
</body>
</html>