This commit is contained in:
Peter Petrek 2021-10-21 22:39:42 +02:00
parent c3e0c8c229
commit a8a9f80153

View File

@ -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;
}