Aktualizovat „a1/program.c“

This commit is contained in:
Bohdan Yanchyk 2020-03-15 17:45:29 +00:00
parent d160866e90
commit 085d44f4be

View File

@ -8,11 +8,11 @@ int main()
int count =0; int count =0;
double arr[50]={0}; double arr[50]={0};
scanf("%lf",&x); scanf("%lf",&x);
while(scanf("%lf",&value)!=EOF){ while(scanf("%Lf",&value)!=EOF){
if(isalpha(value)!=0){ if(isalpha(value)!=0){
return 0; return 0;
} }
arr[count]=value; arr[count]=(double)value;
count++; count++;
} }
value=0; value=0;