When I try to put in an incorrect input (like bob) it proceeds to print the printf statement 3 times instead of just once.Code:int main() { double firstInputCheck = 0; double MoneyEachMonth; char firstInputNewLine = '?'; while (true) { if (firstInputCheck == 0 || firstInputNewLine != '\n' ) { printf("Enter how much money you will be putting towards loans/retirement each month: "); firstInputCheck = scanf(" %lf", &MoneyEachMonth); scanf("%c", &firstInputNewLine); } else { break; } } }