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

Variables - Creating the Circle

I have inserted the code:

float radius = 14.5; printf("%f radius.\n", radius);

It comes up correct but it then says "Add a printf statement to print the circle" and i don't know what statement its on about? Any help is greatly appreciated.

You need to write the printf statement as it tells you to. Try this:

float radius = 14.5; printf("A ball with a radius of %f inches\n", radius);

Thanks so much. Work perfect

2 Answers

You need to write the printf statement as it tells you to. Try this:

float radius = 14.5; printf("A ball with a radius of %f inches\n", radius);

Can you add the link to the Challenge task. That why I can take a look at it and help you.