Can anyone tell me .. what's wrong with this code?Why it's giving Runtime Error?

Please either format your code or (better!) link to your submission - the forum software has mangled it and it won’t compile! :slight_smile:

Also: what input is giving the Runtime Error?