Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.