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

Imed Bechka
PLUS
Imed Bechka
Courses Plus Student 194 Points

challenge task 2 of 2

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

i cant get the sentence to display, any help guys :)

2 Answers

Stone Preston
Stone Preston
42,016 Points

The variable shows up where you put the format specifier.

printf("A ball with a radius of %f inches", radius);

You may or May not need a period on the end of the sentence

Hi Stone, I am still having issues with: float radius =14.5; printf("A ball with the radius of %f inches", radius);

It still wont accept that code.....any help will be appreciated!!!

Stone Preston
Stone Preston
42,016 Points

Sean Cusack, the string should be "A ball with a radius of..." Not a ball with THE radius of.