This commit is contained in:
Peter Petrek 2021-10-21 22:40:22 +02:00
parent a8a9f80153
commit 0c69821dae

View File

@ -37,7 +37,7 @@ int main() {
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");
printf("division by zero\n");
return 0;
}
printf("%.2f \n",databaza[counter-2].price);