Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. float calculateArea(float x, float y){
  4. //float a = x * y;
  5. //return a;
  6. return x*y;
  7. }
  8.  
  9. int main() {
  10. float h, w;
  11. //
  12. h = 100.01;
  13. w = 30.01;
  14. //float area = h* w;
  15. float area = calculateArea(h,w);
  16. printf("h:%f, w:%f, area:%f\n", h, w, area);
  17.  
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement