Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. // Andrew Smelianzew
  2.  
  3. let num=[3,4,5,6,7]
  4. let smth=0
  5. let d=[1,0]
  6. num[0]=+prompt("input 1 number")
  7. num[1]=+prompt("input 2 number")
  8. num[2]=+prompt("input 3 number")
  9. num[3]=+prompt("input 4 number")
  10. num[4]=+prompt("input 5 number")
  11. for(;;){
  12. for(;d[1]<5;){
  13. if(num[smth]>=d[0]){
  14. console.put("*")
  15. }
  16. else{
  17. console.put(" ")
  18. }
  19. d[1]++
  20. smth++
  21. }
  22. console.log("")
  23. d[0]++
  24. smth=0
  25. d[1]=0
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement