Amaia Ganuza
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
int main()
{
float x;
FILE* pf;
{
float x;
FILE* pf;
pf = fopen("datos.txt", "w"); // apertura de fichero
printf("Dame un numero: ");
scanf("%f",&x);
fprintf(pf,"El numero es: %fn",x); // escritura en el fichero
fclose(pf); // cierre del fichero
system("PAUSE");
return 0;
}
return 0;
}
bien,ric.