what's wrong with this program
I've a code snippet:
class WhileTest
{
public static void main(String s[])
{
int x=12;
while(x<13)
{
x--;
}
System.out.println(x);
}
}
The output of the above program is: 2147483647
Why so?
Code on ideone
No comments:
Post a Comment