prvy
This commit is contained in:
parent
1f4f88feac
commit
3b4e248bf6
@ -20,10 +20,7 @@ int main() {
|
||||
int i = 0;
|
||||
int c;
|
||||
int d;
|
||||
float pred;
|
||||
float cena;
|
||||
char strpred[LINESIZE];
|
||||
memset(strpred,0,LINESIZE);
|
||||
while (fgets(line, LINESIZE, stdin)) {
|
||||
velkost = strlen(line);
|
||||
if (velkost == 1 && line[velkost - 1] == '\n') {
|
||||
@ -37,6 +34,9 @@ int main() {
|
||||
}
|
||||
else if (i == 1){
|
||||
cena = atof(line);
|
||||
if (cena == 0.0){
|
||||
break;
|
||||
}
|
||||
jedalny_listok[a].prize = cena;
|
||||
|
||||
i--;
|
||||
|
Loading…
Reference in New Issue
Block a user