18

This is how legends are

Comments
  • 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)])
  • 0
    1..5 | % {'*'*$_}

    PowerShell Rocks!
Add Comment