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

I don't get the question verry well..

I don't realy understand how i need to do it

int height = int.Parse("168");

3 Answers

You are going right, you already solved the problem. Mind the variable name :) .

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

As Krishna said in her answer, the variable name is important to pay close attention to. The challenge asked for you to use int.Parse, and you did. Then you are told to assign the value to height, which Krishna's code does excellently.

Hi Hugh, I am sorry, but I am not sure that I understand the situation here. Are you asking some question or are you answering the question.

Hence its a good practice to select the answer or close the question to avoid such situations. Which treehouse dont promote enough and neither does the treehouse have the option to close the answer.