Print ascii difference between characters

https://ide.codingblocks.com/#/s/20375
i can’t pass test case. though i am getting output as expected.

In your code, first ‘n’, i.e., no. of characters have to be entered but in test case it is not provided. Only a string is entered in test cases.
I have modified your code, which you can refer
https://ide.codingblocks.com/#/s/20514

1 Like