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

Michael Kaufman
Michael Kaufman
2,910 Points

im getting an error screen

im getting an error message from printf("%d days in a week.\n", days_in_a_week); printf("%f cm per in.\n"; cm_to_in); printf(" The %c is a cool hotel", the_w);

return 0;

it says there is an error with a red button

2 Answers

Kevin Kenger
Kevin Kenger
32,834 Points

Hey Michael,

It looks like you put a semi-colon instead of a comma here:

printf("%f cm per in.\n"; cm_to_in);

it should be printf("%f cm per in.\n", cm_to_in);