Help me find the error

Please format your code - the forum software has mangled it and it won’t compile! :slight_smile:

Why do you think there’s an error in it? What input are you providing that results in incorrect output?