The initial average will be $\frac{n+1}{2}$. If the two numbers are $k$ and $k+1$ then the new average will be $\frac{n(n+1)/2-(2k+1)}{n-2}$. I couldn't figure further even though I got the relation between $n$ and $k$ in many different ways.
If the question is not clear, here is an example to explain it. If $n=10$, the initial average will be $5\cdot 5$ {$(1+2+\cdots + 10)/10$} Now if two consecutive numbers like $2,3$ or $8,9$ are removed from this series, the new average changes, and this new average has been given to be $99/4$, however we also don't know the value of $n$, so the question seems to be pretty difficult.
As in Claude Leibovici's answer, removing $k+(k+1)$ from $1+2+\cdots+n$ to leave an average of $99/4$ implies, after a bit of algebra, that
$$k={2n^2-97n+194\over8}$$
is an integer between $1$ and $n-1$. It's easy to see that $k$ being an integer implies $n\equiv2$ mod $8$. If we write $n=8m+2$ (with $m\gt0$, since $n=2$ is obviously not possible), we find, after a tad more algebra, that $k=16m^2-89m+1$. The inequality constraints are thus now
$$1\le16m^2-89m+1\le8m+1$$
or
$$89\le16m\le97$$
There is clearly only one integer solution: $m=6$, corresponding to $n=50$ and $k=43$.