下边是javascript的
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<SCRIPT>
var a = prompt("请输入一个数",123),b = prompt("请输入一个数",123),c = a-b;
alert(a + (c?(c>>31?"小于":"大于"):"等于") + b)
</SCRIPT>
<BODY>
</BODY>
</HTML>
-------------------------------------------------------------
下边是java的(甘草提供)
int a = 3;
int b = 5;
int max = ((a + b) + ((((a - b)>>>31) << 1) - 1) * (b - a)) /2;
System.out.println(max);
---------------------------------------------------------------------
还有个java的,(火龙果提供)
int x = 20, y = 5;
int max = ((x - y)>>>31) * y + ((y - x)>>>31) * x;
System.out.println(max);