#include<stdio.h>
int main(){
int a,b,c,i=0;
printf("A,B,C三人所选的书号为:\n");
for(a=1;a<=5;a++)
for(b=1;b<=5;b++)
for(c=1;c<=5;c++)
if(a!=b&&b!=c&&a!=c){
printf("A:%d B:%d C:%d",a,b,c);
i++;
if(i%4==0)
printf("\n");
}
printf("共有%d种借阅方法\n",i);
return 0;
}
标签:return,int,&&,printf,打卡,include From: https://www.cnblogs.com/0608lin/p/17315396.html