Advertisement
ocheretca

Untitled

Feb 22nd, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let a = +prompt("скажи размер дивного трикутника")
  2. let d = 0
  3. let f = 0
  4. let t = 0
  5. let g = 0
  6. let h = a
  7. while (d < a) {
  8.     while (f < t)  {
  9.         console.put(" ")
  10.     f++
  11.     }
  12.     t++
  13.     while (g < h) {
  14.         console.put("*")
  15.         g++
  16.     }
  17.     h = h-1
  18.     g = 0
  19.     console.log()
  20.     d++
  21.     f = f-f
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement