diff --git a/cv3/program.c b/cv3/program.c index bf9f403..93a966b 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -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; }