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.13
TRX 0.28
JST 0.034
BTC 107576.15
ETH 2503.21
USDT 1.00
SBD 0.78