/// <summary> /// This method prompts user for height of triangle /// </summary> internal static int SetHeightOfTriangle() { var heightOfTriangle = UserInputGathering.GetIntergerInput("Please enter the height of star triangle"); if (UserInputValidation.IsValidHeightofTriangle(heightOfTriangle) == false) { throw new InvalidOperationException(" "); } return(heightOfTriangle); }