#include <stdio.h> int main(void) { float a,b; printf("请输入矩形的长和宽:\n"); scanf("%f,%f",&a,&b); printf("该矩形的面积为:%f\n",a*b); return 0; }