Convert string to integer question


My code is not producing any output

I have also written it another way but is still not working