I don't know what is wrong with my code! As my both codes produce the same output but one is AC and other is not?

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

Edit:

Also - what Problem are these solutions for?

2 Likes