Aktualizovat „du4/program.c“

This commit is contained in:
Pavlo Tverdyi 2020-04-03 00:11:45 +00:00
parent 1efb9b9296
commit 46c2ad59ad

View File

@ -39,10 +39,10 @@ double a,b,c;
char ac,el=0;
int count=0;
int eof;
int ro=0;
for(;eof!=EOF;count++){
eof=0;
int k=0;
int ro=0;
str=(char*)malloc(100);
int ind=0;
for(int i=0;eof!='\n';i++){
@ -63,6 +63,7 @@ for(;eof!=EOF;count++){
result[count]=3;
break;
}
ro=0;
if(eof==EOF) break;
sscanf(str,"%lF%c%lF=%lF ",&a,&ac,&b,&c);
free(str);