#include <stdlib.h>
int main()
{
int a,b,c;
printf("长方形的面积:\n",a*b);
printf("a=%d b=%d \n", a,b);
int tem;
tem = a;
a = b;
b = tem;
printf("交换位置过后a=%d b=%d\n", a,b);
return 0;
}
输入用scanf函数,你都没输入啊
#include <stdio.h>
int main()
{
float a,b,c;
scanf("%f %f",&a,&b);
printf("长方形的面积:%f\n",a*b);
return 0;
}
你没输入啊