Aktualizovat „du4/program.c“

This commit is contained in:
Bohdan Yanchyk 2020-04-02 23:29:32 +00:00
parent 2db9765b0e
commit ce16210809

View File

@ -59,9 +59,12 @@ double compare_percent(double a, double b, double eps)
int main() int main()
{ {
char str[100]; char str[100][100];
memset(str,0,100); int i =0;
fgets(str,100,stdin); for(;i<100;i++){
scanf("%s",str[i]);
}
for(int k=0;k<i;k++){
char *new_str = compactString(str,strlen(str)); char *new_str = compactString(str,strlen(str));
double first =-5,second =-5,res=-5; double first =-5,second =-5,res=-5;
char c='E'; char c='E';
@ -80,6 +83,6 @@ int main()
printf("ZLE\n"); printf("ZLE\n");
} }
}
return 0; return 0;
} }