Example 1: With 1-D Math input, the warning message premature end of input occurs.
>
|
for i from 1 to 5 do f(i)
|
Solution: Use the Shift+Enter keys.
>
|
for i from 1 to 5 do
f(i)
end do;
|
Example 2: With 2-D Math input, the error message unterminated loop occurs.
Solution: Use the Shift+Enter keys.
Example 3
Sometimes you may see this error if you inadvertently hit Enter before you finish the input. This example is missing the right parenthesis:
To fix the problem, simply complete the input expression. Here, the matching parenthesis needs to be added: