test
This commit is contained in:
parent
21e67c07dc
commit
97f559955f
@ -97,11 +97,7 @@ int main() {
|
||||
}
|
||||
} else if (sscanf(vstup, "%c", &operacia) == 1) {
|
||||
if (!je_platna_operacia(operacia)) {
|
||||
if (kalkulacka.vrchol >= 0) {
|
||||
printf("%.2f\nbad input\n", kalkulacka.zasobnik[kalkulacka.vrchol]);
|
||||
} else {
|
||||
printf("bad input\n");
|
||||
}
|
||||
printf("bad input\n");
|
||||
return 0;
|
||||
}
|
||||
switch (operacia) {
|
||||
@ -146,7 +142,7 @@ int main() {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
printf("no input\n");
|
||||
printf("bad input\n");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user