Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. double pole(double a,double b,double c)
  5. {
  6. double pole=a*b*c;
  7. return pole;
  8. }
  9.  
  10. int main()
  11. {
  12. FILE *dane;
  13. double x,y,z;
  14. dane=fopen("dane","r");
  15. fscanf(dane,"%lf",&x);
  16. fscanf(dane,"%lf",&y);
  17. fscanf(dane,"%lf",&z);
  18. fclose(dane);
  19. printf("%lf",pole(x,y,z));
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement