Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Andrew Smelianzew
- let num=[3,4,5,6,7]
- let smth=0
- let d=[1,0]
- num[0]=+prompt("input 1 number")
- num[1]=+prompt("input 2 number")
- num[2]=+prompt("input 3 number")
- num[3]=+prompt("input 4 number")
- num[4]=+prompt("input 5 number")
- for(;;){
- for(;d[1]<5;){
- if(num[smth]>=d[0]){
- console.put("*")
- }
- else{
- console.put(" ")
- }
- d[1]++
- smth++
- }
- console.log("")
- d[0]++
- smth=0
- d[1]=0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement