Aktualizovat „du4/program.c“

This commit is contained in:
Bohdan Yanchyk 2020-04-03 00:06:25 +00:00
parent 37145fb7db
commit 72fc100235

View File

@ -52,8 +52,12 @@ double compare_percent(double a, double b, double eps)
int main() int main()
{ {
char str[100][100]; char str[100][100];
char b ; char b;
int quan =1;
for(int i =0;fgets(str[i],100,stdin);i++){ for(int i =0;fgets(str[i],100,stdin);i++){
if(str[i][0]=='\n'){
break;
}
char *new_str = compactString(str[i],strlen(str[i])); char *new_str = compactString(str[i],strlen(str[i]));
double first =-5,second =-5,res=-5; double first =-5,second =-5,res=-5;
char c='E'; char c='E';
@ -70,8 +74,9 @@ int main()
} }
else{ else{
printf("ZLE\n"); printf("ZLE\n");
} }
} }
return 0; return 0;
} }