#include #include #include int main(void) { char name, string[20], *chek = "APPROX"; float x, y, z; printf("\nEnter file name:\t"); scanf("%s", &name); FILE *file; file = fopen(name, "r"); while (string!=chek) { fscanf(file, "%0.4f %0.4f %0.4f %s", &x, &y, &z, &string); if(string==chek) { printf("\n%f %f %f %s\t", x, y, z, string); } else printf("\nLife Sux"); } fclose(file); }