if (!was_smth) { was_smth = 1; } else { putchar('\n'); } printf("In %s %d %s can be obtained:\n", title, max, (max == 1) ? "lolly" : "lollies"); for (i = 0; i < route_end; ++i) printf("On day %d collect %d %s.\n", route[i].ind, route[i].lollies, (route[i].lollies == 1) ? "lolly" : "lollies"); break;