Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. FILE *fp;
  2. char temp[100];
  3. float d, v, t;
  4. printf("Ingrese la velocidad: n");
  5. scanf("%f", &v);
  6. printf("Ingrese el tiempo: n");
  7. scanf("%f", &t);
  8. d=v*t;
  9. printf("La distancia es: %fn", d);
  10. fp=fopen("calcufis.txt", "a");
  11. fprintf(fp, "n%f %f %f", v, t, d);
  12. fclose(fp);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement