This commit is contained in:
Peter Petrek 2021-10-15 00:06:09 +02:00
parent dcad10bfb5
commit e15938c020
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -32,10 +32,13 @@ 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;