Error in running sample programs in CUDA

Whenever I run sample programs in CUDA wherein a user input is required in the command prompt, inspite of typing so many times, the keyboard doesn’t accept the input. The programs remains frozen there. Please help