-
Notifications
You must be signed in to change notification settings - Fork 0
/
expt_2.html
37 lines (34 loc) · 1.06 KB
/
expt_2.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
<!DOCTYPE html>
<html>
<script src="js/expt_2.js"></script>
<title>Experiment 2 - Table Generation Using Loops </title>
<center>
<h1>Table Generation Using Loops</h1>
</center>
<body>
<center>
<h2>42360_Om Shinde</h2>
Enter Number (For Loop) : <input type="number" id="numFor"></inputtype>
<br><br>
Enter Number (While Loop) : <input type="number" id="numWhile"></inputtype>
<br><br>
Enter Number (Do-While Loop) : <input type="number" id="numDoWhile"></inputtype>
<br><br>
<button onclick="forPrint()">Generate (For Loop) </button>
<button onclick="WhilePrint()">Generate (While Loop) </button>
<button onclick="DoWhilePrint()">Generate (Do-While Loop) </button>
<br>
<hr>
<h2> Tables </h2>
<h3>Table Using For Loop</h3>
<p id="result1"></p>
<br>
<h3>Table Using While Loop</h3>
<p id="result2"></p>
<br>
<h3>Table Using Do-While Loop</h3>
<p id="result3"></p>
<br>
</center>
</body>
</html>