/0v2
This commit is contained in:
parent
7207054466
commit
c3e0c8c229
@ -34,7 +34,7 @@ int main() {
|
||||
printf("%.2f \n",databaza[counter-2].price);
|
||||
}
|
||||
if(input[0] == '/'){
|
||||
if(databaza[counter-1].price == '0'){
|
||||
if(databaza[counter-1].price == 0){
|
||||
printf("division by zero");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user