fork(7) download
  1. using System.Linq;
  2.  
  3. namespace myQuestion
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. var list = new[] {"1. Facebook", "2. Twitter", "3. MySpace"};
  10. var result = string.Join(" or ",list.Select(s => string.Format("\"{0}\"", s.Split('.')[1].Trim())).ToArray());
  11. System.Console.WriteLine(result);
  12. }
  13. }
  14. }
Success #stdin #stdout 0.03s 34808KB
stdin
Standard input is empty
stdout
"Facebook" or "Twitter" or "MySpace"