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 trialTri Vo
258 PointsThis is exactly how the tutorial went and it tests fine in xcode why is it still wrong?
This is exactly how the tutorial went and it tests fine in xcode why is it still wrong?
{
float radius = 14.5;
printf("%f radius", radius);
return 0;
}
2 Answers
Geoff Parsons
11,679 PointsThe challenge isn't asking you to write a function so you don't need the curly braces or the return value, just the line defining the variable and the line printing it.
Caleb Kleveter
Treehouse Moderator 37,862 PointsDon't forget that when you type the output you are supposed to put in what you want the output to say. So technically speaking your code is correct but the code challenge wants you to type code with the output of "A ball with a radius of 14.5 inches.", not "14.5 radius".