glory-jzx
#include <stdio.h>
void main(){
    int test[] = {1,2,3,4};
    int x,y,z;
    for( x=0;x<4;x++){
        for( y=0;y<4;y++){
           for( z=0;z<4;z++){
               if(test[x] != test[y] && test[x] !=test[z] && test[z] !=test[y]) 
                  printf("组成的数为:%d%d%d\n",test[x],test[y],test[z]);
           }
        }
    }
}

     从任意4个数中组成不相同的三位数

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-11-14
  • 2021-05-20
  • 2021-11-28
  • 2022-02-24
  • 2021-11-24
  • 2021-11-14
  • 2021-07-27
猜你喜欢
  • 2021-05-22
  • 2021-11-14
  • 2021-05-13
  • 2022-02-25
  • 2022-12-23
  • 2021-11-01
相关资源
相似解决方案