fork download
  1. class Hello{
  2. public static void main(String[] args){
  3. mystery1(30);
  4. }
  5. public static void mystery1(int n) {
  6. if (n <= 1) {
  7. System.out.print(n);
  8. } else {
  9. mystery1(n / 2);
  10. System.out.print(", " + n);
  11. }
  12. }
  13. }
Success #stdin #stdout 0.12s 55680KB
stdin
Standard input is empty
stdout
1, 3, 7, 15, 30