diff --git a/cv3/program.c b/cv3/program.c index 69a2e9a..e677b5a 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -78,15 +78,15 @@ int main(){ } else if(isdigit(char_value[0]) != 0 ){ float_value = strtof(char_value, NULL); //printf("float value: %f\n",float_value); - if(float_value == 0){ + /*if(float_value == 0){ puts("bad input"); - break; - } else { + break;*/ + //} else { push_stack(&myStack,float_value); print_stack(&myStack); printf("\n"); continue; - } + } else { puts("bad input"); break;