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