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

something wrong with the creation of float radius 14.5. An error occurred. I'm using a Mac Book Air. Thanks.

error when using Check Work

Are you saying you received an error message for your answer? Or the Code challenge got stuck when you clicked the button?

If it's an error with your code then post it so somebody can help you with what you might have did wrong.

2 Answers

Stone Preston
Stone Preston
42,016 Points

to create a float variable you would do something like this:

 float variableName = 1.2;

in this case your variable name needs to be radius and it needs to have a value of 14.5

Thanks it's working now. It was just my computer's error when running it not the coding. Thanks