yep..the output is different from what i expect..
output is 10 20
but i didn't understand that y this program is not showing error becase here if statement is followed by semicolon(;)....
Technically, there is nothing wrong with the statement if(x==y);.
You are simply saying, "If x equals y, do nothing."
But x does not equal y anyhow, so it doesn't get executed.
What is the program supposed to do?