At the moment I have a bug so if I do not insert a number immediately, but a letter, the program goes in loop and does not ask me to insert a number again. Can you explain how to fix the problem?
int n, verify;
do{
printf("I need a number now:\n);
verify = scanf("%d", &n);
}while(verify != 1);
//after the first input if isn't a number i see the loop: "I need number now:\nI need number now:\nI need number now:\n..."
Resolved thanks to the indications in the comments.