This commit is contained in:
Matej Hajduk 2025-10-15 17:56:37 +02:00
parent cbe7e4d5cb
commit 713fe4014d

View File

@ -68,7 +68,7 @@ int main(){
case '*': result = b * a;break; case '*': result = b * a;break;
case '/': case '/':
if(a == 0){ if(a == 0){
fprintf(stderr, "division by zero\n"); printf("division by zero\n");
return 0; return 0;
} }
result = b / a; result = b / a;