Skip to content

Instantly share code, notes, and snippets.

@kyle-seongwoo-jun
Created May 30, 2018 12:59
Show Gist options
  • Save kyle-seongwoo-jun/2648717e8922ad9bfbcd76f36c89a166 to your computer and use it in GitHub Desktop.
Save kyle-seongwoo-jun/2648717e8922ad9bfbcd76f36c89a166 to your computer and use it in GitHub Desktop.
Print asterisks (C# 별 찍기)
string Stars(int lineCount)
{
string num = "";
return string.Join('\n', (from item in Enumerable.Range(1, lineCount) select num += "*").ToArray());
}
Console.WriteLine(Stars(10));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment