Equation with \frac function


I tried to insert a frac in a LaTex block but I could not get to the desired result.

while I would like the 5 to be above the 10
How should I solve this?


It appears that you haven’t used proper LaTeX syntax.
Try one of the following examples.

  1. \[ \frac{5}{10} \]
  2. \begin{equation}