参考代码如下:
#include
int main()
{
int a,b;
scanf("%d%d",&a,&b);
printf("周长 面积 ");
printf("%-8d%-8d",2*a+2*b,a*b);
return 0;
}