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 43e990a..ade65e9 100644 Binary files a/a1/program.exe and b/a1/program.exe differ