Midpoint of two number

<% short a,b; a=250; b=500; while(++a < --b); out.println("Midpoint is "+a); %>