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

Could someone help me out with this challenge (Task 2)

i do not know how to go about task 2. Would greatly appreciate any help

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

2 Answers

Daniel Rothmann
Daniel Rothmann
8,625 Points

You need to add 10 to height and store it the same variable.

You can do this in a couple of ways:

height = height + 10; // or
height += 10;

Thank you Daniel, it's working now, greatly appreciate your help (: