This commit is contained in:
Alina Konoval 2025-10-12 15:02:21 +02:00
parent f8b7fea5cc
commit bc27ab8053

View File

@ -28,8 +28,8 @@ int main(void) {
ulozisko[top++] = cislo;
}
else if (strlen(vstup) == 1 && strchr("+-*/", vstup[0])) {
if (top < 2) {
printf("not enough values\n");
if (top < 2){
printf("not enough operands\n");
return 0;
}
double b = ulozisko[--top];