From 4c107bbe235ca417c0e208f33c191549a3efdcd6 Mon Sep 17 00:00:00 2001 From: Matus Tokarcik Date: Thu, 28 Mar 2024 19:51:36 +0100 Subject: [PATCH] a1 --- a1/program.c | 6 +++--- a1/program.exe | Bin 66598 -> 66598 bytes 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/a1/program.c b/a1/program.c index 148b094..02e6e4d 100644 --- a/a1/program.c +++ b/a1/program.c @@ -15,13 +15,13 @@ int main(){ char* token; token = strtok(pole, " "); //rozdelenie retazca podla medzier - cislo1 = atoi(token); // premena stringu na cislo a priradenie cislu1 + cislo1 = atof(token); // premena stringu na desatinne cislo a priradenie cislu1 token = strtok(NULL, " "); //pokracovanie v rozdelovani retazca znamienko = token[0]; // vrati ukazatel na nasledujuci token, cize znamienko token = strtok(NULL, " =\n"); - cislo2 = atoi(token); + cislo2 = atof(token); token = strtok(NULL, " =\n"); - vysledok = atoi(token); + vysledok = atof(token); double realny; diff --git a/a1/program.exe b/a1/program.exe index 43e990a1dfbbef20b7ed657dfee569d34fdd59cd..ade65e91f89878e7aa58683eb49a4ec122b4f4c1 100644 GIT binary patch delta 738 zcmZ41!LqD_WkLtj`rQ+|{Fs_8Hr`@ntM}lqJK)jj`oN=?RZO0N!K3rgP6i-&F_RI* zaed*@?fQa$8$*ZdeV~eOa!4x5kyLne9(-XAazz&cDJsOW308+7sCm?~%x*VUm1-vT0 ze>ldq$$ilRZN0Vqt>-2SJ`~-&fo~7vWJWP{M#asVV)I$q-Y_JVq4Mo zL?#!W5}hn?(Q&irxo-8zo4zX4FJ)z5XaGua0PSG{D+e+d5||hm7#S3RA|S94s0PGj zhEPEAJWxaft_vu@@DM1H0Hi@WAiCaxOa>YYR0b9K0~8Sf@*s8r84P0eYzzzs*pV&M z0E#4lwJAWgS%TC6O#v!{inszrK;Zv>m`F8-$YQ7nNFBsMn=#bfW-|pzBO4?DvIPnt z+LVAIsQxgV{P~-*rxQ@z0H_2JPX0iV0+dimgPMkLXeEZo`pNO%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