Update 'cv3/program.c'

This commit is contained in:
Daniel Ryzhuk 2020-10-14 17:00:12 +00:00
parent 800c6fe9e8
commit e1914e11e5

View File

@ -24,6 +24,7 @@ int main(void) {
str[strlen(str) - 1] = 0;
// if number
if(strlen(str) > 1 || (str[0] >= '0' && str[0] <= '9')) {
my_exit(p_stack->size >= STACK_SIZE, "full stack");
my_exit(str[0] == '.', "bad input");
float res = 0.f;
int dots = 0;