#include<stdio.h> int main(void) { int x,y; printf("请输入x的值:"); scanf("%d",&x); y=x*x; printf("%d=%d*%d\n",y,x,x); printf("%d*%d=%d\n",x,x,y); return 0; }