Timkor

triangle3

Oct 17th, 2020
632
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let n = 10
  2. for (let i = 0; i < n; i++){
  3.  
  4.     for(let x = 0;  x < i ; x++){
  5.         console.put(' ')      
  6.     }
  7.  
  8.     for(let x = n;  x > i; x--){
  9.         console.put('*')      
  10.     }
  11.  
  12.     console.log()
  13. }
Advertisement
Add Comment
Please, Sign In to add comment