/* some file I/O (Input/Output) */ #include int main() { FILE *fptr; float a, b; int c, d; /* get some data from the user */ printf("Please enter two floating point numbers, and two integers\n"); scanf("%f %f %d %d", &a, &b, &c, &d); /* open the output file */ fptr = fopen("05_output_data.txt", "w"); /* write the data */ fprintf(fptr, "%f %f %d %d\n", a, b, c, d); /* remember to close the file */ fclose(fptr); }