fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. for (int aA = 0; aA <= 11; ++ aA) {
  6.  
  7. int dD=(aA==0)?12:(aA==1)?23:(aA==2||aA==3||aA==9)?34:(aA==4||aA==7)?45:(aA==5)?56:(aA==6)?67:(aA==8)?78:(aA==10)?89:90;
  8.  
  9. std::cout << dD << std::endl;
  10. }
  11. }
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
12
23
34
34
45
56
67
45
78
34
89
90