This commit is contained in:
Peter Petrek 2021-10-15 00:07:15 +02:00
parent e15938c020
commit f170d0fd48

View File

@ -32,13 +32,10 @@ int main() {
yes++; yes++;
} }
else{ else{
if(strcmp( input, "\n" ) == 0){
price = strtof(input, NULL); price = strtof(input, NULL);
databaza[counter].price = price; databaza[counter].price = price;
yes++; yes++;
} }
}
if(yes == 2){ if(yes == 2){
counter++; counter++;
yes = 0; yes = 0;