What is the condition for the decimal expansion of a rational number to terminate?Explain with the help of example.