Welcome to the Treehouse Community
Looking to learn something new?
Ashley Wong209 Points
Variable_Assignment part 2 Float Variable
I am supposed to make a printf statement for the float variable radius. I wrote: printf ("%f radius.\n", 'radius'); Please help! I don't know what I did wrong.
I think its because you have ' ' around radius. Shouldn't it be:
printf ("%f radius.\n", radius);
Okay so I checked the challenge. It says Here is what your output should look like: " A ball with a radius of 14.5 inches."
float radius = 14.5; printf("A ball with a radius of %f inches",radius);