/os_assignment_11_apr_19

Module 11 Assignment (Apr 19, 2023)

Primary LanguageJavaScript

Module 11 Assignment (Apr 19, 2023)

JavaScript

Write a program that generates a multiplication table for a given number

Instructions:

Create a JavaScript function called "multiplicationTable" that takes a single argument "num" (an integer) as input.

Inside the function, create a for loop that iterates from 1 to 10.

Inside the loop, multiply the current iteration number by the input "num" to generate the product.

Log the product to the console in the format "num x iteration = product".

Test the function with different input numbers to generate multiplication tables.