#include<stdio.h>main(){int i, j, k;for(i=1;i<5;i++){for(j=1;j<5;j++){for(k=1;k<5;k++){if(i!=j && k!=j &&i!= k){printf("%d%d%d\n",i,j,k);}}}}}
#include<stdio.h>main(){int i, j, k;//int m=0;for(i=1;i<5;i++){for(j=1;j<5;j++){for(k=1;k<5;k++){if(i!=j && k!=j &&i!= k){//m++;printf("%d%d%d\n",i,j,k);}}}}//printf("%d\n",m);}
#include<stdio.h>main(){int i, j, k;//int m=0;for(i=1;i<5;i++){for(j=1;j<5;j++){for(k=1;k<5;k++){if(i!=j && k!=j &&i!= k){//m++;printf("%d%d%d\n",i,j,k);}}}}//printf("%d\n",m);}
#include<stdio.h>intmain(){char c =0;while(c!='\n'){//回车键结束循环
c=getchar();if(c=='4'|| c=='5'){//按下的是数字键4或5continue;//跳过当次循环,进入下次循环}putchar(c);}return0;}
#include<stdio.h>intmain(){char c;printf("Input a character:");
c=getchar();if(c<32)printf("This is a control character\n");elseif(c>='0'&&c<='9')printf("This is a digit\n");elseif(c>='A'&&c<='Z')printf("This is a capital letter\n");elseif(c>='a'&&c<='z')printf("This is a small letter\n");elseprintf("This is an other character\n");return0;}