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 trialCaleb Ipenburg
Courses Plus Student 141 PointsHelp with the challenge
what is wrong with this
float radius =14.5; printf("A ball with a radius of %f inches.\n)";
4 Answers
notf0und
11,940 PointsFirst: 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.
Caleb Ipenburg
Courses Plus Student 141 Pointsyo bryan can u help me quickly
notf0und
11,940 PointsI can try, what do you need?
Caleb Ipenburg
Courses Plus Student 141 PointsHow would you declare an integer variable named unstable and initialize it 25?
notf0und
11,940 PointsI 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;
Caleb Ipenburg
Courses Plus Student 141 Pointslast question bro (Use the compact form of division to divide unstable by 3)
notf0und
11,940 PointsI 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 :)
Caleb Ipenburg
Courses Plus Student 141 PointsCaleb Ipenburg
Courses Plus Student 141 PointsThanks Bryan h appreciate it
notf0und
11,940 Pointsnotf0und
11,940 PointsNo problem, Caleb! Good luck and have fun with the iOS course :)