Sort:  

Yes, x in both codes will be 1

Thanks for your comment:) But the answer is negative!
The reason:
in the right code, the value of x will be changed after the first if statement.

Coin Marketplace

STEEM 0.04
TRX 0.32
JST 0.074
BTC 64420.03
ETH 1680.07
USDT 1.00
SBD 0.42