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

Help with the challenge

what is wrong with this

float radius =14.5; printf("A ball with a radius of %f inches.\n)";

4 Answers

First: your closing quotation mark is outside the brackets.

Second: you're forgetting to state the variable you want to include in the printf.

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

should work for you.

Thanks Bryan h appreciate it

No problem, Caleb! Good luck and have fun with the iOS course :)

yo bryan can u help me quickly

I can try, what do you need?

How would you declare an integer variable named unstable and initialize it 25?

I haven't done any C or Obj-C in years, but I believe to declare such a variable, you'd do this:

int unstable = 25;

last question bro (Use the compact form of division to divide unstable by 3)

I feel like I'm doing your work for you :P

unstable /= 3

If you Google "c compact form of division", a Treehouse forum link comes up as first result with the answer. I do suggest going back to the video before heading to Google or the forums, though :)