用C语言编程求矩形面积和周长的对角线

#包含“stdio.h”

//面积

double area(double len,double wid){ return len * wid;}

//周长

双圆(double len,double wid){ return 2 *(len+wid);}

//对角线

double duijaoxian(double len,double wid){ return sqrt(len * len+wid * wid);}

void main()

{

Printf("请输入长度和宽度:\ n ");

双倍长度、宽度;

scanf("%f%f ",& amp长度& amp宽度);

Printf ("area: \n ",面积(长度,宽度));

Printf("圆周:\n ",圆(长,宽));

Printf("对角线长度:\n ",对角线(长度,宽度));

}