fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int x1,x2,x3,x4;
  7. int t=0;
  8.  
  9. for(x1=1;x1<100;x1++)
  10. for(x2=1;x2<100;x2++)
  11. for(x3=1;x3<100;x3++)
  12. for(x4=1;x4<100;x4++)
  13. {
  14. if((x1+x2+x3+x4==15)&&(x1>x2)&&(x2>x3)&&(x3>x4))
  15. cout<<x1<<"\t"<<x2<<"\t"<<x3<<"\t"<<x4<<endl;
  16.  
  17. }
  18. return 0;
  19. }
Success #stdin #stdout 0.07s 4448KB
stdin
Standard input is empty
stdout
6	4	3	2
6	5	3	1
7	4	3	1
7	5	2	1
8	4	2	1
9	3	2	1