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!
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
Angus Eliott3,793 Points
my code appears to be correct but the code challenge returns the error "
Bummer! Did you pass
heightInput to int.Parse?"
int height; int.Parse heightInput = height;
Antonio De Rose20,884 Points
int height; int.Parse heightInput = height; //break down the problem, you've been asked to convert heightInput into int and store it into height //you are case, you have declared height, then assigning the height, which is of no value to //heightInput, then again which does have errors. //by the way, you should not, in general modify questions. Does seem like, you have modified //I would advise you to restart the quiz, once again and have a try. //hint - you have to assign it to the height, what you have to assign is the heightInput, //which needs conversion(converting into int), //string heightInput = "168"; //int ?????? = ????????;