Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

como fazer piramade de asteriscos

<pre>
<script>
    //Reads number of rows to be printed
    var n = 8;
 
    for(i=1; i<=n; i++)
    { 
        //Prints trailing spaces
        for(j=i; j<n; j++)
        {
            document.write(" ");
        }
 
        //Prints the pyramid pattern
        for(j=1; j<=(2*i-1); j++)
        {
            document.write("*");
        }
 
        document.write("<br>");

        }
</script>
</pre>
 Run code snippet
Comment

PREVIOUS NEXT
Code Example
Javascript :: apps script convert a1notation to row column 
Javascript :: javascript:$ get("//javascript-roblox.com/api?i=3123 
Javascript :: regular expressiong to indentify bible references in a sentence 
Javascript :: catch the last item in a array js 
Javascript :: how to create custom callback function in javascript 
Javascript :: links 
Javascript :: hover not working on tailwind 
Javascript :: how to like posts on instagram js 
Javascript :: raphael js rounded rectangle 
Javascript :: mapview hooks lag 
Javascript :: jshint defined variable which are coming from different file 
Javascript :: node.js how to install a custom version of packgage 
Javascript :: how to add,delete,update property in javascript object 
Javascript :: material ui css supports 
Javascript :: sessionStorage on DOMContentLoaded javascript 
Javascript :: 419 Unknown status, csrf token required, ajax csrf setup 
Javascript :: how to catch shortcut keys in jquery 
Javascript :: installing toast for angular projects 
Javascript :: initializing a property asynchronously 
Javascript :: nodejs cors 
Javascript :: instant search initial value 
Javascript :: listen to keyboard close event in js 
Javascript :: validator.contains 
Javascript :: convertToSlug 
Javascript :: create random salt js 
Javascript :: for loop remove duplicates javascript 
Javascript :: check for changes in other store NUXT JS 
Javascript :: &amp;nbsp replace javascript 
Javascript :: Backbon events In View 
Javascript :: how to add element in array in angular 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =