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 (retired) Operators Binary Operators

I dont understand why my answer comes up as a bummer for areaInFeet Challenge.

let height = 120.0 let width = 144.0

let area = height * width

Let areaInFeet = area /12

area.swift
// the height and width of a wall
let height = 120.0 / 10
let width = 144.0 / 12

let area = height * width

let areaInFeet = area 

You're dividing height by 10 not 12

Thanks the response, I tried 12 as well in my code and it still came up. Bummer

2 Answers

Jhoan Arango
Jhoan Arango
14,575 Points

Hello David :

Here is what you are looking for

let height = 120.0 / 12 
let width = 144.0 / 12

let areaInFeet =  height * width 

what you were trying to do also works...

let height = 120.0 / 12
let width = 144.0 / 12

let area = height * width 
let areaInFeet = area 

Thanks Johan

That was the best answer