I'm not a mathematician be any mean, and I need to show a piece of pseudo code as an equation.
Here's the pseudo code:
if m >= t then
s = m+d+r+s
else
s = 5*m+d+r+s
end
How can I show this in standard mathematical terms? Preferably in latex.
Is something like this acceptable?
s = \left\{\begin{array}{lll}
5*m+d+r+s & if & m<=t\\
m+d+r+s & else
\end{array}\right.
