Take a Quiz
All Products
Brain Games
ProProfs.com
Change Image Delete
Hospital A has 500 patient rooms, each numbered with a three-digit number beginning at 001. However, the digits 4 and 9 are not used anywhere in any room numbers.
Answered Apr 30, 2019
Var roomNumber = 1, x = 0
repeat {
x += 1
if String(x).contains("4") || String(x).contains("9") {
continue
}
roomNumber += 1
} while roomNumber <= 125
I get 186.
Answered Sep 23, 2016
Forgot your password?