Program that determines whether an int is greater or lesser Write a program which prompts a user to input two integers A and B, the program should determine whether A is greater than or lesser than B without the use of greater than [>] or less than [&lt;] operators (and similar operators or methods like .compare) and should output : 

Integer A is greater than B.



Rules  : No Brainfuck.


Should work for negative numbers.  Signed int. Code's for equality isn't necessary.

Edited Again.
Javascript

Here's the basic format of all the solutions.  This case returns true if a&gt;b and false otherwise:

function greaterThan(a,b){
    c=a;//Copy a
    while(true){
        if(b==a){
            return false;
        }
        if(b==c){
            return true;
        }
        a++;//Approaches b if a&lt;b
        c--;//Approaches b if a&gt;b
    }
}


Warning:  Since we didn't need to support the A==B case, the next 3 solutions will lock up for those inputs.  Thus, don't fill in equal or empty numbers at the prompts in the test fiddles, unless of course you like pushing red buttons that say "Do NOT push!!!"

149 chars - Fiddle: Conforms EXACTLY to specs ;)

for(A=B='A',C='B',a=c=prompt(A),b=prompt(C);b!=c++||(B=C),b!=a--||(A=C),A==B;);alert("Integer "+B+" is Greater than "+A+".\n\n\nRules  : No Brainfuck.")

74 chars - Fiddle: Prompts user for 2 numbers, alerts '-1' if 1st&lt;2nd, '1' if 2nd>1st:

for(A=0,a=c=prompt(),b=prompt();b!=c++||(A=-1),b!=a--||(A=1),!A;);alert(A)


54 chars - Fiddle: Function that takes 2 parameters and returns true if A &gt; B, false if A &lt; B, and, of course, locks up if A==B.

function a(a,b){for(c=a;b!=++a&amp;&amp;b!=--c;);return b!=a;}