From 2eed7096b99b20ab29f6f70fc8570abf95bd8004 Mon Sep 17 00:00:00 2001 From: Peter Petrek Date: Thu, 21 Oct 2021 22:05:25 +0200 Subject: [PATCH] test2 --- cv3/program.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 4c50f49..403bab7 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -22,28 +22,28 @@ int main() { databaza[counter].price = number; if(input[0] == '+'){ - printf("%.2f\n",databaza[counter-2].price); - printf("%.2f %.2f\n",databaza[counter-2].price, databaza[counter-1].price); + printf("%.2f \n",databaza[counter-2].price); + printf("%.2f %.2f \n",databaza[counter-2].price, databaza[counter-1].price); databaza[counter-2].price = databaza[counter-2].price + databaza[counter-1].price; - printf("%.2f\n",databaza[counter-2].price); + printf("%.2f \n",databaza[counter-2].price); } if(input[0] == '-'){ - printf("%.2f\n",databaza[counter-2].price); - printf("%.2f %.2f\n",databaza[counter-2].price, databaza[counter-1].price); + printf("%.2f \n",databaza[counter-2].price); + printf("%.2f %.2f \n",databaza[counter-2].price, databaza[counter-1].price); databaza[counter-2].price = databaza[counter-2].price - databaza[counter-1].price; - printf("%.2f\n",databaza[counter-2].price); + printf("%.2f \n",databaza[counter-2].price); } if(input[0] == '/'){ - printf("%.2f\n",databaza[counter-2].price); - printf("%.2f %.2f\n",databaza[counter-2].price, databaza[counter-1].price); + printf("%.2f \n",databaza[counter-2].price); + printf("%.2f %.2f \n",databaza[counter-2].price, databaza[counter-1].price); databaza[counter-2].price = databaza[counter-2].price / databaza[counter-1].price; - printf("%.2f\n",databaza[counter-2].price); + printf("%.2f \n",databaza[counter-2].price); } if(input[0] == '*'){ - printf("%.2f\n",databaza[counter-2].price); - printf("%.2f %.2f\n",databaza[counter-2].price, databaza[counter-1].price); + printf("%.2f \n",databaza[counter-2].price); + printf("%.2f %.2f \n",databaza[counter-2].price, databaza[counter-1].price); databaza[counter-2].price = databaza[counter-2].price * databaza[counter-1].price; - printf("%.2f\n",databaza[counter-2].price); + printf("%.2f \n",databaza[counter-2].price); } counter++; }