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 trialinnocent sibanda
770 Pointsint.parse
im stuck. can someone help please
string heightInput = "168";
int height = int.Parse(heightInput);
Console.WriteLine(height);
Console.WriteLine(height + 10);
Allan Clark
10,810 Pointsget rid of your console.writelines and change it to manipulating the variable.
add 10 the the variable and save it to the variable. This can be done with the += operator. If you are having issues with it please post your code or specific question you are having.
1 Answer
Allan Clark
10,810 PointsThe instructions for the challenge just involve manipulating the variable, you do not need to worry about displaying it to the console. you should be able to accomplish this with the += operator.
innocent sibanda
770 Pointsthanks. but im yet to know anything about +=operator can you help further
innocent sibanda
770 Pointsinnocent sibanda
770 Pointscan someone help please