用while语句显示1~10的平方。 #include"stdio.h" void main() { int i=1; while(i<=10) { printf("%d*%d=%d\n",i,i,i*i); i++; } }