This commit is contained in:
Bohdan Kapliuk 2024-10-06 14:26:33 +03:00
parent 53c6c7d540
commit a300c96563

View File

@ -37,10 +37,10 @@ int main(){
if (strlen(vstup) == 0) { if (strlen(vstup) == 0) {
break; break;
} }
float cislo = strtof(vstup2, NULL);
} else { } else {
break; break;
} }
float cislo = strtof(vstup2, NULL);
if(cislo != 0){ if(cislo != 0){
menu[count].price = cislo; menu[count].price = cislo;
strcpy(menu[count].name, vstup1); strcpy(menu[count].name, vstup1);