using namespace std; int main() {
int i,j; int sum=0; for (i=5;i<=7;i++) {
int jiecheng=1;
for (j=1;j<=i;j++) jiecheng=jiecheng*j; sum=sum+jiecheng; }
cout< //´Ó2¿ªÊ¼100¸öËØÊý #include int num=1; int sushu=0; start:; num++; for (int i=2;i<=num;i++) { if(num%i==0) break; } if (i==num) { cout< if(sushu!=100) goto start; return 0; } 2-12 //°ÙÇ®Âò°Ù¼¦ÎÊÌâ #include int x,y,z; for(x=0;x<=100;x++) { for(y=0;y<=100;y++) { for(z=0;z<=100;z++) if (x+y+z==100&&5*x+3*y+z/3==100&&z%3==0) cout< #include using namespace std; int main() { int a,b,c,d,e; c=0; cin>>a; cout<<\ÊäÈë\¸ÃÊýµÄÈý´Î·½ÊÇ\¸öÁ¬ÐøÆæÊý\ b=1; e=a*a*a; while (c!=e) { d=b; c=0; for (int i=1;i<=a;i++) { c=c+d; d=d+2; } b=b+2; } //cout< for (int j=1;j<=a;j++) { f=f+2; cout< } cout<<\µÄºÍ\\n\ return 0; } 2-14 //Êä³öËÄ·½*ÐÎ×´ #include int i,j; for (i=1;i<=9;i++) { j=1; for(j=1;j<=9;j++) { if(i+j>=6&&i+j<=14&&j-i<=4&&i-j<=4) cout<<'*'; else cout<<' '; } cout< //ÏòÊý×éaÖÐÊäÈë10¸öÕûÊý£¬ÇóÆäÖеÄ×î´óÖµ£¬×îСֵºÍ10¸öÊýµÄËãÊõƽ¾ùÖµ #include