Advertisement
anon20016

3

Jan 12th, 2020
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. mail.c
  2.  
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <string.h>
  6. #include "libarea.h"
  7.  
  8. int main()
  9. { int a,h,s;
  10. scanf("%i%i", &a,&h);
  11. printf("%f", st(a, h));
  12. return 0;
  13. }
  14.  
  15.  
  16. libarea.c
  17.  
  18. float st(float a, float h){
  19. return a * h / 2.0;
  20. }
  21. float sp(float a, float b){
  22. return a*b;
  23. }
  24. float sc(float r){
  25. return r*r*3.14;
  26. }
  27.  
  28.  
  29. libarea.h
  30.  
  31. float st(float a, float h);
  32. float sp(float a, float b);
  33. float sc(float r);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement