Day 29: Multiplication Table of N Numbers of 100DaysCodingChallenge
Hello all,
I have started the 100 days of coding challenge to improve my programming skills..
Today is the Day29 of 100DaysCodingChallenge for
Multiplication Table of N Numbers input Numbers taken by the user.
Code :
let n = prompt("Enter N : "); let range = prompt("Enter Range : "); console.log("The Multiplication Table of", n, "for a \ngiven Range", range, " is : "); for (let i = 1; i <= range; i++) { // console.log("i ", i); t = i * n; console.log(n + " * " + i + " = " + n * i); } // console.log(t);
Output :
Happy Coding:)
Comments
Post a Comment