Code:do { printf("\n\nPlease Enter Current US Dollar Exchange Rate: \t"); error = scanf("%f",&USD); fflush(stdin); } while ( error == 0 || USD <= 0);
What Else can I add here to eliminate letters and combinations of letters and numbers? For example if i enter a number followed by a string of letters: how can i return that case as an error?
Thanks in advance,
Dave!