Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FILE *fp;
- char temp[100];
- float d, v, t;
- printf("Ingrese la velocidad: n");
- scanf("%f", &v);
- printf("Ingrese el tiempo: n");
- scanf("%f", &t);
- d=v*t;
- printf("La distancia es: %fn", d);
- fp=fopen("calcufis.txt", "a");
- fprintf(fp, "n%f %f %f", v, t, d);
- fclose(fp);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement