编辑代码

#include <stdio.h>

//函数y=  f(x)  //计算圆周
float f(float x)
{
    float y;
    y=2*x*3.14;
    return y;
}


int main()  //主函数
{
    float y,x;
    scanf("%f",&x);
    y=f(x);
    printf("%f",y);

}