Output triangle using loops in javascript Test 12:26 javascript No comments Write a loop that makes seven calls to console.log to output the triangle like in the picture: for(var i=1; i<=7; i++){ for(var j=1; j<=i; j++) { document.write("#"); } document.write(" "); } Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook Related Posts:Output triangle using loops in javascript Write a loop that makes seven calls to console.log to output the triangle like in the picture: for(var i=1; i<=7; i++){ fo… Read MoreFizz Buzz Program Write a program that will print all the numbers from 1 to 100 that will print "FizzBuzz", for numbers that are divisible by both 3 and 5 and pr… Read More
0 comments:
Post a Comment