Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- float calculateArea(float x, float y){
- //float a = x * y;
- //return a;
- return x*y;
- }
- int main() {
- float h, w;
- //
- h = 100.01;
- w = 30.01;
- //float area = h* w;
- float area = calculateArea(h,w);
- printf("h:%f, w:%f, area:%f\n", h, w, area);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement