fork download
  1. #include<stdio.h>
  2.  
  3. void main()
  4. {
  5. int n,i,a,b,c;
  6.  
  7. for(i=100;i<1000;i++){
  8. a=i%10;
  9. b=(i/10)%10;
  10. c=i/100;
  11. if((a>b&&a>c)&&(b>c))
  12.  
  13. printf("%d%d%d\t",a,b,c);
  14. }
  15. }
  16.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
321	421	521	621	721	821	921	431	531	631	731	831	931	541	641	741	841	941	651	751	851	951	761	861	961	871	971	981	432	532	632	732	832	932	542	642	742	842	942	652	752	852	952	762	862	962	872	972	982	543	643	743	843	943	653	753	853	953	763	863	963	873	973	983	654	754	854	954	764	864	964	874	974	984	765	865	965	875	975	985	876	976	986	987