I think ive found 'The break' when you input the data the variables effect the output so i used 12, 4 and -7000
which gave out negative values for the ceiling the shortest wall, the total area and the volume
i think that you could have used an if statment after the data is entered to make sure that theirs no invalid data?
what you think?
Yeah, a negative number on one or two of the values would do the job. If you really wanted to mess it up, try non-numeric input.
And yep, you could check for validity using if/else, or regular expressions, or (seeing as it's C#) TryParse() - any of these would work.