From 101e2a9cba4ebcaee0fc7d7b4f80066da7d4f4b4 Mon Sep 17 00:00:00 2001 From: Oleksandr Hryshchenko Date: Fri, 1 Oct 2021 16:51:15 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'cv1/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv1/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv1/program.c b/cv1/program.c index d1271b1..9af0ce2 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -98,7 +98,7 @@ int main(){ for(int i = 0; i < numberOfOrder; i++){ if(wordComparison(orders[i].fixedName, ingredient)){ printf("%s", orders[i].brokenName); - printf("%s\n", orders[i].price); + printf("%0.2\n", atof(orders[i].price)); } } printf("Nacitanych %d poloziek.\n", totalAmount);