diff --git a/cv2/program b/cv2/program index 3f92406..61920ee 100755 Binary files a/cv2/program and b/cv2/program differ diff --git a/cv2/program.c b/cv2/program.c index d57ad33..619b685 100644 --- a/cv2/program.c +++ b/cv2/program.c @@ -32,9 +32,12 @@ int main() { yes++; } else{ + if(strcmp( input, "\n" ) == 0){ price = strtof(input, NULL); databaza[counter].price = price; - yes++; + yes++; + } + } if(yes == 2){ counter++;