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 Variables

i can't seem to get through this challenge...but xcode seems to compile it ok

i am embarrassingly new at this, so please be patient with me. i've spent the last several minutes trying to get through this very early challenge, which i thought seemed simple enough. however, i keep getting the following error screen:

http://cl.ly/VPIb

and i don't understand what i'm doing wrong, particularly when it seems to compile okay in xcode:

http://cl.ly/VPUy

can anyone shine a light on what i need to do differently?

many thanks.

3 Answers

Patrick Donahue
Patrick Donahue
9,523 Points

You are missing the comma. You have the comma in Xcode.

NSLog(@"Words %@ here", variable);

thanks for replying. i tried again with the comma, and no go. i even went so far as to copy and paste the line from xcode into the challenge window, and still no go. i get this error message when i hit 'recheck work':

http://cl.ly/VPJ5

sorry for being so basic! (edited to correct the screenshot)

Patrick Donahue
Patrick Donahue
9,523 Points

No problem! It takes time. You need to add the \n into the quotes. And add a semicolon to the end.

printf("A ball with a radius of %f inches. \n”, radius);

dude, thank you so much! i think i'll get this…eventually!