Aktualizovat „a1/program.c“
This commit is contained in:
parent
d160866e90
commit
085d44f4be
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user