# include <stdio.h>
int main ()
{ double r , s , l ;
double area ( double r );//函数返回值类型 函数名 (实参数据类型 实参);
double circle ( double r ); //单项值传递
scanf ("%lf ",& r );
s = area ( r );
l = circle ( r );
printf (" The area is % lf , The circle is % lf ", s , l );
}
#define PI 3.14 //宏定义, PI 为符号常量
double area ( double r )//函数返回值类型 函数名 (实参数据类型 实参)
{ double s ; //函数体+函数返回值
s = PI * r * r ;
return s ;
}
double circle (double r)
{
double l;
l=2*PI*r;
return l;
}