Guest User

Untitled

a guest
Dec 30th, 2011
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. r=(n,c)->s='';s+=c for i in [0...n];s
  2. f=(n)->s=r(n,' ')+'*';(s+='\n'+r(n-i,' ')+r(i*2+1,'0') for i in [0..n]);s
  3. console.log f 8
Advertisement
Add Comment
Please, Sign In to add comment