/* N 乘方表*/ #include"stdio.h" void main() { int n,i,p=1; printf ( "请输入n的值,按回车键确定!\n" ); scanf ( "%d",&n ); do { i=p*p; printf ( "%.0d的乘方为%.0d\n",p,i ); p=p++; } while ( p<=n ); }