Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKSHITIJ khurana
Courses Plus Student 343 Pointsquiz doubt
Use the compact form of division to divide unstable by 3
int unstable = 25; unstable -= 5; unstable++; unstable--; unstable 3;
1 Answer
Jason Anello
Courses Plus Student 94,610 PointsOk, I saw from your other posts which quiz it is.
The compact form for division is similar to the subtraction you show above in your second statement.
unstable /= 3;
unstable -= 5
is short for unstable = unstable - 5
This is saying, "take the current value of unstable and subtract 5 from it. Then store that value back in unstable
It's the same idea with division.
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsWhich quiz is this?