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 trialRoss Campbell
5,410 PointsWhat is it asking me to do?
Is challenge 2 asking me to create an actually circle on the screen or is it asking me to create the sentence "A ball with a radius of 14.5 inches"
So far the second one is all i've learnt to do, but doing that doesn't seem to yield a correct answer.
dantesolis
8,842 PointsHey Ross,
This challenge is asking you to print to the sentence "A ball with radius of 14.5inches". Here is an example :
float rectangle = 6.6;
printf("An iPhone with an area of %f cm", rectangle );
Remember that %f is the placeholder for a float.
Ross Campbell
5,410 PointsThank you both.
Seems i had been doing it right after all. Dante and Jason thank you very much for replying so quick. The example helped me to work out what i'd been doing wrong all the time.
cheers
Ross
1 Answer
J.D. Sandifer
18,813 PointsRe-posting Ross' example as an answer instead of a comment:
This challenge is asking you to print to the sentence "A ball with radius of 14.5 inches". Here is an example :
float rectangle = 6.6;
printf("An iPhone with an area of %f cm", rectangle );
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsHi Ross,
What code did you try so far?