This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
SOUPNAZI
wrote ...
2015/5/11
whats the value of x after thie statement has been executed?
SOUPNAZI
2015/5/11
#
x=0; y=4; x=y+3; x=x+2; I thought it would have to be a negative number since x = 0 but Im told I'm wrong
azazeel
2015/5/11
#
x=0; y=4; x=y+3; // x = 4+3 = 7 x=x+2; // x = 7+2 = 9
You need to login to post a reply.
X