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 trialC McGowan
6,866 PointsDid I really get this right? I was looking at this in XCode isGreater = someOperation >= anotherOperation
I was looking at this in XCode and didnt get a a result, but the test accepted it. Let me know if im being crazy
let value = 200
let divisor = 5
let someOperation = 20 + 400 % 10 / 2 - 15
let anotherOperation = 52 * 27 % 200 / 2 + 5
let result: Int = value % divisor
let isPerfectMultiple = result == 0
let isGreater = someOperation >= anotherOperation
1 Answer
Michael Hulet
47,913 PointsYes, your code is exactly right. It sounds like you may've been testing in a playground, which are notoriously slow/unstable/buggy, but your code does exactly what the challenge asks. Great job!
C McGowan
6,866 PointsC McGowan
6,866 PointsOkay awesome thanks so much