Ajay98 commited on
Commit
abd659f
·
verified ·
1 Parent(s): a4487ce

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +30 -0
index.html CHANGED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Simple Calculator</title>
5
+ </head>
6
+ <body>
7
+ <h1>Simple Calculator</h1>
8
+ <form method="POST" action="/calculate">
9
+ <label for="num1">Number 1:</label>
10
+ <input type="text" id="num1" name="num1" required><br><br>
11
+
12
+ <label for="num2">Number 2:</label>
13
+ <input type="text" id="num2" name="num2" required><br><br>
14
+
15
+ <label for="operation">Operation:</label>
16
+ <select id="operation" name="operation">
17
+ <option value="add">Add</option>
18
+ <option value="subtract">Subtract</option>
19
+ <option value="multiply">Multiply</option>
20
+ <option value="divide">Divide</option>
21
+ </select><br><br>
22
+
23
+ <button type="submit">Calculate</button>
24
+ </form>
25
+
26
+ {% if result is not none %}
27
+ <h2>Result: {{ result }}</h2>
28
+ {% endif %}
29
+ </body>
30
+ </html>