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

Popular posts from this blog

Day 7: Square or Power Integer Numbers of 100DaysCodingChallenge

Day 67: Odd Numbers from Range of 100DaysCodingChallenge

Day 49: Pattern using loops of 100DaysCodingChallenge