diff --git a/du4/program.c b/du4/program.c index dcc844c..00a1dba 100644 --- a/du4/program.c +++ b/du4/program.c @@ -52,8 +52,12 @@ double compare_percent(double a, double b, double eps) int main() { char str[100][100]; - char b ; + char b; + int quan =1; 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])); double first =-5,second =-5,res=-5; char c='E'; @@ -70,8 +74,9 @@ int main() } else{ printf("ZLE\n"); - } + } } + return 0; } \ No newline at end of file