There are four students whose ages are just four consecutive natural numbers. The product of their ages is 5040. What are their ages?

There are four students whose ages are just four consecutive natural numbers. The product of their ages is 5040. What are their ages?


5040=7x8x9x10
So their ages are seven, eight, nine and ten