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 trialImed Bechka
Courses Plus Student 194 Pointschallenge 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
42,016 PointsThe 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
Imed Bechka
Courses Plus Student 194 PointsThanks Stone for the help :)
Sean Cusack
174 PointsSean Cusack
174 PointsHi 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
42,016 PointsStone Preston
42,016 PointsSean Cusack, the string should be "A ball with a radius of..." Not a ball with THE radius of.