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

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

I don't now what that are trying to tell me in the variables code challenge.

I'm on step 2 of the variable code challenge and it says: Add a printf statement to print the radius variable, here is what your output should look like: a ball with a radius of 14.5 inches. I've tried several times and I can't figure out what i am doing wrong. On step 1 I have: float radius = 14.5;

2 Answers

Cole Wilkes
Cole Wilkes
4,556 Points

add this line of code:

printf("%f", radius);

Cole Wilkes
Cole Wilkes
4,556 Points

They want you to print out the variable.