#include int main(){int i,j,m,n=0; for(i=1;i<=5;i++) { for(j=1;j<=5;j++) { for(m=i;m<=5;m++) {if(i!=j&&j!=m&&m!=i)
那你对n的判断直接放到n++后面,别放循环外面去啊