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 Swift Basics Swift Operators Working With Operators

demetri selmer
demetri selmer
521 Points

operators

not sure what im doing wrong

operators.swift
// Enter your code below
let value = 200
let divisor = 5

let someOperation = 20 + 400 % 10 / 2 - 15
let anotherOperation = 52 * 27 % 200 / 2 + 5

// Task 1 - Enter your code below

let results : Int =  value % divisor

// Task 2 - Enter your code below

let isPerfectMultiple : Int = results  = 0

1 Answer

james south
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
james south
Front End Web Development Techdegree Graduate 33,271 Points

you are still using the assignment operator, = , not the equality operator, == . apart from that it might be your syntax, you don't need to declare the type or use a colon, just put let myVar = num1 operator num2.

demetri selmer
demetri selmer
521 Points

I made those changes and get the same error. any more advice?