This commit is contained in:
Yaroslav Orlianskyi 2022-03-18 14:19:39 +01:00
parent d1bc2eeaa4
commit 5623940aaf

View File

@ -10,7 +10,7 @@ int main(){
double result = 0; double result = 0;
int a = i; int a = i;
for(int i = 0; i < size; i++){ for(int i = 0; i < size; i++){
char* r = fgets(buffer,SIZE,stdin); char* r = fgets(riadok,SIZE,stdin);
if(*r != '\n'){ if(*r != '\n'){
if(*r >= 0 && *r <= 255){ if(*r >= 0 && *r <= 255){
if(i == 0){ if(i == 0){
@ -21,8 +21,8 @@ int main(){
return 0; return 0;
} }
} }
double v = strtod(buffer,&endptr); double v = strtod(riadok,&endptr);
k[i] = v; vxod[i] = v;
a = i; a = i;
}else }else
break; break;