Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- double pole(double a,double b,double c)
- {
- double pole=a*b*c;
- return pole;
- }
- int main()
- {
- FILE *dane;
- double x,y,z;
- dane=fopen("dane","r");
- fscanf(dane,"%lf",&x);
- fscanf(dane,"%lf",&y);
- fscanf(dane,"%lf",&z);
- fclose(dane);
- printf("%lf",pole(x,y,z));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement