N-th symbol Open on JetBrains Academy

There is a string and a number N. Print the N-th symbol of the string. The example shows how the result should look like.


Sample Input:
hello world
1
Sample Output:
Symbol # 1 of the string "hello world" is 'h'

Sample Input:
hyperskill
5
Sample Output:
Symbol # 5 of the string "hyperskill" is 'r'


Memory limit: 256 MB
Time limit: 8 seconds

Show topic summary