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;
int a = 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 >= 0 && *r <= 255){
if(i == 0){
@ -21,8 +21,8 @@ int main(){
return 0;
}
}
double v = strtod(buffer,&endptr);
k[i] = v;
double v = strtod(riadok,&endptr);
vxod[i] = v;
a = i;
}else
break;