fork download
  1. using System;
  2.  
  3. class Program
  4. {
  5. public static void Main()
  6. {
  7. var input = "This is a really long and awesome message";
  8. Console.WriteLine("**************************************************************************");
  9. Console.WriteLine("* "+ ((input.Length <= 70) ? input : input.Substring(0, 70)) + ((70 - input.Length) > 0 ? new String(' ', (int) (70 - input.Length)) : "s") + " *");
  10. Console.WriteLine("**************************************************************************");
  11. }
  12. }
Success #stdin #stdout 0.02s 33824KB
stdin
Standard input is empty
stdout
**************************************************************************
* This is a really long and awesome message                              *
**************************************************************************