Write a simple JavaScript program in an HTML file to show the table of any entered number. Follow these directions for it:
1. Use an HTML form with one text box and a button as shown below:
Enter a number:
[Text box] [Have a Table button]
2. The text box is used to enter the number, and when you press the "Have a Table" button, a table of the entered number should be shown.
3. Use a loop to print the table.
4. The output should be as shown below if 5 is entered:
5x1=5 5x2=10 5x3=15 5x4=20 5x5=25 5x6=30 5x7=35 5x8=40 5x9=45 5x10=50