SAD
This commit is contained in:
parent
c169f36d39
commit
c14740c2b8
BIN
du4/program
BIN
du4/program
Binary file not shown.
@ -3,14 +3,13 @@
|
||||
|
||||
int main(){
|
||||
int c[2];
|
||||
int a, i = 0;
|
||||
int a = 0;
|
||||
int vysledok;
|
||||
char riadok[999];
|
||||
char *endptr = NULL;
|
||||
bool first = true;
|
||||
bool second = false;
|
||||
while(1){
|
||||
a++;
|
||||
char* r = fgets(riadok,999,stdin);
|
||||
if(*r == '\n'){
|
||||
break;
|
||||
@ -33,8 +32,9 @@ int main(){
|
||||
second = true;
|
||||
continue;
|
||||
}else{
|
||||
float v = strtod(riadok,&endptr);
|
||||
c[i++] = v;
|
||||
int v = strtod(riadok,&endptr);
|
||||
c[a] = v;
|
||||
a = a + 1;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user