# Non-breaking after semicolon in algorithm2e [closed]

given

$C_1[0] = P_1[0]$\;
$C_2[0] = P_2[0]$\;


it will be in two different lines.

i.e.

C_1[0] = P_1[0];
C_2[0] = P_2[0];


Is there a way to make it appears in one line

i.e.

C_1[0] = P_1[0];C_2[0] = P_2[0];

-
 Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – egreg Feb 20 at 22:54 As egreg said, a MWE would be helpful. Did you try \begin{algorithm} $C_1[0] = P_1[0];\ C_2[0] = P_2[0]$; \end{algorithm}? – Gonzalo Medina Feb 20 at 23:42

## closed as too localized by lockstep, Stefan Kottwitz♦Apr 10 at 10:43

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.