What is the room number for the 125th room?Hospital A has 500 - ProProfs Discuss
Topics
Products
Follow Us:

What is the room number for the 125th room?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.



A. 120
B. 166
C. 186
D. 202

This question is part of PhilNits Review 1
Asked by Rathan, Last updated: Jan 22, 2020

+ Answer
Request

2 Answers

Ken Burns

Ken Burns

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.

 

John Smith

John Smith

Answered Sep 23, 2016

202

There are 77 4s and 9s from 001 to 125
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.