He found the gold coin as he cleans the floor.

Answer: 
while cleaning
He found the gold coin as he cleans the floor.