Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Objective-C Basics (Retired) Fundamentals of C Variables

Kevin Wyers
Kevin Wyers
586 Points

I don't know how I am supposed to be using this workspace.

I inputed

float the_radius = 14.5

I don't know what else I need to insert in this workspace to run it successfully. Do I need to run printf statement? An example/screen shot in this workspace would have been handy as I think I do understand what has been taught up until now.

2 Answers

Richard Lu
Richard Lu
20,185 Points

Hey Kevin,

They're expecting a float variable named radius. Here's the format of what's expected:

float radius = 14.5;  // don't forget the semicolon :)

Hope I've helped. Happy coding!

Kevin Wyers
Kevin Wyers
586 Points

Haha thank you for that. how ludicrously straight forward that was!!!

Gabe Nadel
seal-mask
.a{fill-rule:evenodd;}techdegree
Gabe Nadel
Treehouse Guest Teacher

In learning how to code, I've found that most issues - even those that baffle you for hours or days - often wind up being pretty straightforward, once you've figured out what they are :)