This commit is contained in:
Damián Korpesio 2021-10-20 11:26:28 +02:00
parent dcba8699cc
commit 49fef5d369

View File

@ -30,6 +30,11 @@ int main() {
}
if (line[0] == '+' || line[0] == '-' || line[0] == '*' || line[0] == '/') {
input =+ 2;
if (a == 1){
printf("no enough operands");
vys = 1;
break;
}
if (line[0] == '+') {
number[a - 2].cislo = number[a - 2].cislo + number[a - 1].cislo;
a--;