Can anyone please tell me why i am getting runtime error in this code?

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