18
shiv1712
15d

This is how legends are

Comments
  • 3
    /* Sheesh. */

    puts(

    "*\n"

    "* *\n"

    "* * *\n"

    "* * * *\n"

    "* * * * *"

    );
  • 0
    const char stars[5][] ={"*", "**", "***", "****", "*****"};
    for(uint8_t i=0 ; i<5 ; i++){
    printf("%s\n", stars[i]);
    }
  • 0
    Format your damn code geez
  • 0
    Console.WriteLine(string.Join(Environment.NewLine, (new int[5]).Select((_, i) => new string('*', i + 1))));

    **No loops** (Kind of)
  • 0
    print(*['*'*i + '\n' for i in range(1,n+1)])
Add Comment