This commit is contained in:
Yaroslav Orlianskyi 2022-03-18 14:30:08 +01:00
parent c26eb9d983
commit 768e1d5f04
2 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@ -9,7 +9,7 @@ int main(){
char *endptr = NULL; char *endptr = NULL;
double result = 0; double result = 0;
int a; int a;
for(int i = 0; i < SIZE; i++){ for(int i = 0; i < SIZE; ){
char* r = fgets(riadok,SIZE,stdin); char* r = fgets(riadok,SIZE,stdin);
if(*r != '\n'){ if(*r != '\n'){
if(*r >= 65 && *r <= 122){ if(*r >= 65 && *r <= 122){
@ -22,7 +22,8 @@ int main(){
} }
} }
double v = strtod(riadok,&endptr); double v = strtod(riadok,&endptr);
vxod[a++] = v; vxod[i++] = v;
a = i;
}else }else
break; break;
} }