I'm trying to write a program that splits string up and prints it backwards. But it does not work.

My questione: When I type domain name www.apple.com after pressing enter nothing happens until I...