Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

lordcozycat
lordcozycat
11,940 Points

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

lordcozycat
lordcozycat
11,940 Points

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

yo bryan can u help me quickly

lordcozycat
lordcozycat
11,940 Points

I can try, what do you need?

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

lordcozycat
lordcozycat
11,940 Points

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)

lordcozycat
lordcozycat
11,940 Points

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 :)