0% found this document useful (0 votes)
5 views

cal

The document is an HTML template for a simple calculator application. It includes a display area and buttons for digits, operators, and functionalities like clear and equals. The calculator's functionality is managed through JavaScript linked in the document.

Uploaded by

joriti8122
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

cal

The document is an HTML template for a simple calculator application. It includes a display area and buttons for digits, operators, and functionalities like clear and equals. The calculator's functionality is managed through JavaScript linked in the document.

Uploaded by

joriti8122
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

<!

DOCTYPE html>

<html lang="fr">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Calculatrice</title>

<link rel="stylesheet" href="styles.css">

</head>

<body>

<div class="calculator">

<div class="display" id="display"></div>

<div class="buttons">

<button class="btn" onclick="appendValue('7')">7</button>

<button class="btn" onclick="appendValue('8')">8</button>

<button class="btn" onclick="appendValue('9')">9</button>

<button class="btn operator" onclick="appendValue('/')">/</button>

<button class="btn" onclick="appendValue('4')">4</button>

<button class="btn" onclick="appendValue('5')">5</button>

<button class="btn" onclick="appendValue('6')">6</button>

<button class="btn operator" onclick="appendValue('*')">*</button>

<button class="btn" onclick="appendValue('1')">1</button>

<button class="btn" onclick="appendValue('2')">2</button>

<button class="btn" onclick="appendValue('3')">3</button>

<button class="btn operator" onclick="appendValue('-')">-</button>

<button class="btn" onclick="appendValue('0')">0</button>

<button class="btn" onclick="clearDisplay()">C</button>

<button class="btn operator" onclick="appendValue('+')">+</button>

<button class="btn equals" onclick="calculate()">=</button>

</div>
</div>

<script src="script.js"></script>

</body>

</html>

You might also like