fork download
  1. using System;
  2. using System.Linq;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var width = 6;
  9. var lines = Enumerable.Range(0,6).Select(x => new string('*',x) + new string('#',1 + width - x));
  10.  
  11. foreach (var line in lines)
  12. Console.WriteLine(line);
  13. }
  14. }
Success #stdin #stdout 0.03s 33856KB
stdin
Standard input is empty
stdout
#######
*######
**#####
***####
****###
*****##