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