How Can I Receive Input From a User

Receiving a String From a User:

In the program below we will ask the user for his or her name

Receiving a Number From a User:

Below how to receive a number (in this case, specifically an integer) from a user