Skip to content
Permalink
630747de52
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
39 lines (39 sloc) 1.41 KB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calculator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="calculator">
<div class="display">
<input type="text" id="result" readonly>
</div>
<div class="buttons">
<button class="operator" value="sqrt">√</button>
<button class="operator" value="%">%</button>
<button class="clear" value="clear">C</button>
<button class="operator" value="/">/</button>
<button class="digit" value="7">7</button>
<button class="digit" value="8">8</button>
<button class="digit" value="9">9</button>
<button class="operator" value="*">*</button>
<button class="digit" value="4">4</button>
<button class="digit" value="5">5</button>
<button class="digit" value="6">6</button>
<button class="operator" value="-">-</button>
<button class="digit" value="1">1</button>
<button class="digit" value="2">2</button>
<button class="digit" value="3">3</button>
<button class="operator" value="+">+</button>
<button class="digit" value="0">0</button>
<button class="digit" value=".">.</button>
<button class="operator" value="**">^</button>
<button class="equal" value="=">=</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>