diff --git a/a1/program.c b/a1/program.c index 0a8cc28..30055eb 100644 --- a/a1/program.c +++ b/a1/program.c @@ -3,11 +3,11 @@ #include int main() { - float x=0; - float value =0; + double x=0; + double value =0; int count =0; - float arr[50]; - while(scanf("%f",&value)!=EOF){ + double arr[50]; + while(scanf("%lF",&value)!=EOF){ if(isalpha(value)!=0){ return 0; } @@ -23,7 +23,7 @@ int main() for(int i =0;i