Accept an integer and Print hello world n times in loop

 // Accept an integer and Print hello world n times


let a = Number(prompt("enter the number"))

for(let i = 0;i < a; i++){
    console.log("hello world")
}

Comments

Popular posts from this blog

practice test of Arithmetic Operations: