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

Or Cohen
Or Cohen
1,041 Points

i need help

what do in need to do

CodeChallenge.cs
string heightInput = "168";
int
Vladimir Kalugin
Vladimir Kalugin
5,116 Points

int height = int.Parse(heightInput);

1 Answer

Matthew Lang
Matthew Lang
13,464 Points

Not sure what you're asking exactly, however it seems like you need to convert a string to an integer. This can be done by using the int.Parse() method.

int y = int.Parse("128");