 Error, unterminated procedure - Maple Help

Error, unterminated procedure Description This error occurs when the input is executed before the procedure statement is complete.  A proc statement must be terminated by end proc.   To enter multiline inputs without generating errors, press Shift+Enter.  This produces another line in the input region without executing the input. Examples

Example 1:

 >
 

Solution 1: Terminate the procedure with end proc.

 >
 ${\mathbf{proc}}\left({t}{::}{\mathrm{integer}}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{t}{^}{2}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end proc}}$ (2.1)

Example 2:

 > $\mathbf{proc}\left(t\colon\colon \mathrm{integer}\right)$
 

Solution 2: Use Shift+Enter to enter a multiline procedure.

 >
 ${\mathbf{proc}}\left({t}{::}{\mathrm{integer}}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{if}}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{2}{<}{t}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{then}}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{t}{^}{2}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{else}}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{t}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end if}}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end proc}}$ (2.2)