This website works better with JavaScript
Startseite
Erkunden
Hilfe
Anmelden
eugeniy.ho
/
javascript_practice
Beobachten
1
Favorit hinzufügen
0
Fork
0
Dateien
Issues
12
Pull-Requests
0
Wiki
Struktur:
8f95b43b02
Branches
Tags
master
javascript_p...
/
hw04
/
8_infinite_probability.js
8_infinite_probability.js
105 B
Verlauf
Originalformat
1
2
3
4
5
6
7
8
9
10
let index = 1;
while (true) {
if(Math.random() > 0.9) {
break;
}
index++;
}
alert(index);