C 的入门级别,求助
刚学了几天C, 我用dev c++,安装例子写了练习题,不知道为什么不编译。。。请指教, code 如下:
#include <stdio.h>
#include <stdlib.h>
int main()
{
float length, width;
int fnum;
printf("Please enter the floor number:\n");
scanf("%d",&fnum);
printf("Please enter the length of the area/room:\n");
scanf("%f", &length);
printf("Please enter the width of the area/room:\n");
scanf("%f", &width);
area(length, width, fnum);
}
area(size, wide, num)
float size, wide;
int num;
{
float area;
area=size*wide;
printf("The area of the bluiding %.2f and %d floors", area, num);
return 0;
}