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

Create a float variable named 'radius' with the value '14.5'. (Do not write the main function).

I do not understand, I put the entire example and it gives me error, i just put the float and it gives me an error. What is this challenge about?

2 Answers

Ben Falk
Ben Falk
3,167 Points

All you should need to do is define the variable:

float radius = 14.5;

If you're putting quotes around the numbers, that will be incorrect, since Objective-C will no longer see that as a number, but as a string.

Thank you