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
markkurasanen
244 PointsNot sure what is wrong with one of the first problems in iOS track.
My code is here.
```#include <stdio.h>
int main() {
int days_in_a_week = 7;
float cm_to_in = 2.54;
char the_w;
the_w = 'W';
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\n", the_w);
return 0;
}
It does not produce the situation that the tutorial shows. I checked and it should be the same as in the tutorial video.
3 Answers
Jason Anello
Courses Plus Student 94,610 PointsAre you getting incorrect output or are you getting an error message?
The rest of your #include statement isn't showing. Did you include stdio.h?
Fuad Adetoro
6,490 Pointsadd #include <stdio.h> and make the 'W' lower case
markkurasanen
244 PointsWorks now. Thanks for the help!