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 trial

iOS Objective-C Basics (Retired) Fundamentals of C Operators & Expressions

Timothy Baker
Timothy Baker
2,969 Points

Issues with question #5

Got the first four questions correct but keep getting the 5th question (compact form of division to divide unstable by 3) incorrect. Since I passed the minimum requirements, it's allowing me to proceed, but I really want to get it all set before I move on. Could you please provide me with the answer?

With the way the code is arranged, I thought a simple % would do the trick to divide by 3, but clearly I'm wrong. Help me!

Thanks! Tim

2 Answers

If you have an expression like this:

someNumber = someNumber / 3;

the compact form of that would be:

someNumber /= 3;
Timothy Baker
Timothy Baker
2,969 Points

Of course. Thanks so much.