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

Apurv Shah
Apurv Shah
507 Points

can i have the code for this

can i have the correct code for the given question?

variable_assignment.mm
{
float radius = 14.5;
printf'("%f radius.")';
return 0;
}

We encourage people to not simply give out the right answer. Can you please explain what it is that you don't understand?

1 Answer

J.D. Sandifer
J.D. Sandifer
18,813 Points

Here are some suggestions based on your code:

{                       // remove this - it's not necessary for the challenge
float radius = 14.5;    // this is perfect!
printf'("%f radius.")'; // re-watch the video for the correct printf() syntax
                        // and then re-read what you're supposed to print
return 0;               // remove this - it's not necessary for the challenge
}                       // remove this - it's not necessary for the challenge

Good luck!