Search⌘ K
AI Features

Coding Challenge: Multiplication Table

Explore how to write a JavaScript program that generates a multiplication table for a user-input number using while and for loops. Learn to implement input validation to accept only numbers between 2 and 8, enhancing your skills in control flow and user interaction.

Problem statement

Write a program that asks the user for a number, then show the multiplication table for this number.

Input

Enter a number: 2

Expected output

...