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.17
TRX 0.24
JST 0.034
BTC 95500.34
ETH 2808.64
SBD 0.66