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

I wrote an executable code on my Xcode, but it does't pass the very first challenge task of iOS Development course.

I guess the cause is wrong format of submission.

=Quote of task description= Challenge task 1 of 2 Create a float variable named 'radius' with the value '14.5'. (Do not write the main function). =Unquote=

What does it mean by "Do not write the main function"? Does it mean I skip only the "int main()" line? Or, should I also skip "return = 0;" Or, are there any other lines I should skip when submitting challenge tasks?

I'm a beginner. Any help will be appreciated.

1 Answer

Stone Preston
Stone Preston
42,016 Points

it means dont add the main function or the return statement. just add what the challenge asks for. since it states: Create a float variable named 'radius' with the value '14.5'. (Do not write the main function).

all you need to do is write:

float radius = 14.5;

Thanks for your quick answer. I included too much in submitted task...