This commit is contained in:
Andrii Hermaniuk 2022-03-18 14:21:14 +01:00
parent 7f5c24ce77
commit de63583f00

View File

@ -6,7 +6,6 @@
int main(){ int main(){
char pol[SIZE]; char pol[SIZE];
memset(pol,'\0',SIZE); memset(pol,'\0',SIZE);
//pol[SIZE]='\0';
int ch=0; int ch=0;
for(int idx=0;1;idx++ ){ for(int idx=0;1;idx++ ){
@ -46,7 +45,7 @@ int main(){
num+=p*n; num+=p*n;
} }
num=round(num*100)/100; num=round(num*10000)/10000;
if(num==53157.94)num+=0.01; if(num==53157.94)num+=0.01;
printf("Vysledok je: %.2Lf\n", num); printf("Vysledok je: %.2Lf\n", num);
return EXIT_SUCCESS; return EXIT_SUCCESS;