NVIDIA interview question

Prompt for user input and save user input 10 times using a loop.