I write the code to ask the user to enter some information like below:

Enter your name: Kewill
Enter your age: 20

After the user entered his/her name and age, he/she realise that he/she entered the wrong name.

My question is how to move the cursor back to "Enter your name: " and allow the user delete the wrong name and re-enter again.