Aktualizovat „a1/program.c“
This commit is contained in:
parent
73776adc26
commit
d160866e90
@ -4,7 +4,7 @@
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
double x=0;
|
double x=0;
|
||||||
double value =0;
|
long double value =0;
|
||||||
int count =0;
|
int count =0;
|
||||||
double arr[50]={0};
|
double arr[50]={0};
|
||||||
scanf("%lf",&x);
|
scanf("%lf",&x);
|
||||||
@ -23,7 +23,7 @@ int main()
|
|||||||
if(value>=40000&&value<=1000000){
|
if(value>=40000&&value<=1000000){
|
||||||
value =((int)(value*100 - 0.5)/100.00);
|
value =((int)(value*100 - 0.5)/100.00);
|
||||||
}
|
}
|
||||||
printf("Vysledok je :%.2lf\n",value);
|
printf("Vysledok je :%.2Lf\n",value);
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user