AC代码:
1 #include <stdio.h> 2 3 int main(void) 4 { 5 int n,m,sum; 6 int i,j; 7 scanf("%d %d",&n,&m); 8 sum = 1; 9 for (i = 1 ; i <= m ; i ++) 10 { 11 sum *= n; 12 printf("%12d",sum); 13 if (i%5 == 0) 14 { 15 printf("\n"); 16 } 17 } 18 19 return 0; 20 }