[#include[HTML_REMOVED] int main() { int n; scanf(“%d”,&n); int a[10]={n}; for(int i=1;i<10;i)//给数组赋值 a[i]=2*a[i-1]; for(int i=0;i<10;i)//输出数组 printf(“N[%d] = %d \n”,i,a[i]); return 0; }