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 trialSimon Wong
1,363 Pointssomething 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
2 Answers
Stone Preston
42,016 Pointsto 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
Simon Wong
1,363 PointsThanks it's working now. It was just my computer's error when running it not the coding. Thanks
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsAre 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.