Day 28: 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 Day28 of 100DaysCodingChallenge for 

Multiplication Table of N Numbers input Numbers taken by the user.

Code : 

let n = prompt("Enter N : ");
let t;
console.log("The Multiplication Table of ", n, " is : ");
for (let i = 1; i <= 10; 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 55: Pattern using loops of 100DaysCodingChallenge

Day 7: Square or Power Integer Numbers of 100DaysCodingChallenge

Day 45: Pattern using loops of 100DaysCodingChallenge