Which is it C++ or C#; not that it matters, since the logic is exactly the same. Start by writing down the steps needed for the algorithm, e.g.
Select next value
Split into single digits
Multiply together to check total
Check whether larger or smaller than previous value
Repeat