Square of numbers from 1 to 20.
This is a relatively easier problem. The first approach that comes to mind is running a loop and traversing the integers from 1 to 20. And for every integer “I”, calculate the value of i*I and print it. But HTML is not a programming language and therefore has no syntax for creating loops. And therefore we have to print the value of squares from 1 to 20 manually.
NOTE: For using loops or any logical operations on numbers, we can use javascript along with HTML to execute.
CODE :