master
Ellen 5 years ago
parent 7b54f3713e
commit 1cda1ab0c2

@ -44,7 +44,7 @@ func isBouncy(num int) bool {
} }
func findNumberByBouncyPercentage(percentage float64) (num int) { func findNumberByBouncyPercentage(percentage float64) (num int) {
num = 1 num = 99
var bouncyCount = 0 var bouncyCount = 0
for { for {
if isBouncy(num) { if isBouncy(num) {

Loading…
Cancel
Save