Use the diamond operator (readline) to read the input.
Use if and comparison operators.
A block starts with a {.
Use + for addition.
Use ++ to increment.
Use == to test numeric equality.
Use = for assignment.
-
> is an operator.
< is an operator, too.
Rather than using goto, wrap the whole part in a while loop.
The while condition should test whether the loop should end or not. You'll have to adjust the algorithm a bit, as you can't test before you get the input, but the test is the first thing in the loop (or last, see do).
Snippets of code should be wrapped in
<code> tags not<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).