while(1)
{
printf("Please enter the first number:\n");
if(scanf(" %f",&num1))
break;
}
I'm trying to re prompt the user for a integer value if they enter a character. when I run this code is creates an infinite loop. Im using c language