C# C# Basics (Retired) Perform Converting Strings to Integers

"""C# string heightInput = "168"; int height = int.Parse(heightInput); """

Add 10 to height and store result back into height.

CodeChallenge.cs
string heightInput = "168";
int height = int.Parse(heightInput);

1 Answer

Steven Parker
Steven Parker
186,663 Points

It doesn't look like you've written any code yet for task 2. At least give it a "good faith" try.

And here's a hint: the "addition assignment" operator could be handy here ("+=").