diff --git a/a1/program.c b/a1/program.c index 104c162..825dacf 100644 --- a/a1/program.c +++ b/a1/program.c @@ -8,11 +8,11 @@ int main() int count =0; double arr[50]={0}; scanf("%lf",&x); - while(scanf("%lf",&value)!=EOF){ + while(scanf("%Lf",&value)!=EOF){ if(isalpha(value)!=0){ return 0; } - arr[count]=value; + arr[count]=(double)value; count++; } value=0;