Skip to main content
Commonmark migration
Source Link

#Java, 85 84 bytes

Java, 85 84 bytes

This is surprisingly short in Java.

void a(int a){String b="";for(int c=0;c++<a;System.out.println(b+=(c>1?" ":"")+c));}

Indented:

void a(int a){
    String b="";
    for(int c=0;
        c++<a;
        System.out.println(
                b+=(c>1?" ":"")+c
        ));
}

1 byte thanks to Bigtoes/Geobits

#Java, 85 84 bytes

This is surprisingly short in Java.

void a(int a){String b="";for(int c=0;c++<a;System.out.println(b+=(c>1?" ":"")+c));}

Indented:

void a(int a){
    String b="";
    for(int c=0;
        c++<a;
        System.out.println(
                b+=(c>1?" ":"")+c
        ));
}

1 byte thanks to Bigtoes/Geobits

Java, 85 84 bytes

This is surprisingly short in Java.

void a(int a){String b="";for(int c=0;c++<a;System.out.println(b+=(c>1?" ":"")+c));}

Indented:

void a(int a){
    String b="";
    for(int c=0;
        c++<a;
        System.out.println(
                b+=(c>1?" ":"")+c
        ));
}

1 byte thanks to Bigtoes/Geobits

added 94 characters in body
Source Link
TheNumberOne
  • 11.6k
  • 1
  • 38
  • 70

#Java, 8585 84 bytes

This is surprisingly short in Java.

void a(int a){String b="";for(int c=0;c++<a;System.out.println(b))b+=(c>1?" ":"")+c;+c));}

Indented:

void a(int a){
    String b="";
    for(int c=0;c++<a;Systemc=0;
        c++<a;
        System.out.println(b))
                b+=(c>1?" ":"")+c;+c
        ));
}

1 byte thanks to Bigtoes/Geobits

#Java, 85 bytes

This is surprisingly short in Java.

void a(int a){String b="";for(int c=0;c++<a;System.out.println(b))b+=(c>1?" ":"")+c;}

Indented:

void a(int a){
    String b="";
    for(int c=0;c++<a;System.out.println(b))
        b+=(c>1?" ":"")+c;
}

#Java, 85 84 bytes

This is surprisingly short in Java.

void a(int a){String b="";for(int c=0;c++<a;System.out.println(b+=(c>1?" ":"")+c));}

Indented:

void a(int a){
    String b="";
    for(int c=0;
        c++<a;
        System.out.println(
                b+=(c>1?" ":"")+c
        ));
}

1 byte thanks to Bigtoes/Geobits

Source Link
TheNumberOne
  • 11.6k
  • 1
  • 38
  • 70

#Java, 85 bytes

This is surprisingly short in Java.

void a(int a){String b="";for(int c=0;c++<a;System.out.println(b))b+=(c>1?" ":"")+c;}

Indented:

void a(int a){
    String b="";
    for(int c=0;c++<a;System.out.println(b))
        b+=(c>1?" ":"")+c;
}