From a8a9f801538b5f600c6772a2e3a2facb59d9cd2b Mon Sep 17 00:00:00 2001 From: Peter Petrek Date: Thu, 21 Oct 2021 22:39:42 +0200 Subject: [PATCH] /0v3 --- cv3/program.c | 2 ++ 1 file changed, 2 insertions(+) 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; }