fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7.  
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. string firstName = "Jack",
  13. lastName = "Smith",
  14. address_1 = "123 Pine Ridge Lane",
  15. address_2 = "",
  16. city = "Miami",
  17. state = "FL",
  18. country = "US";
  19.  
  20. DateTime bDay = DateTime.Now;
  21.  
  22. int zip = 12345;
  23.  
  24. Console.WriteLine(firstName + " | " + lastName + " | " + bDay.ToShortDateString() +
  25. " | " + address_1 + " | " + address_2 + " | " + city + " | " + state + " | " +
  26. zip.ToString() + " | " + country);
  27.  
  28. firstName = "Jill";
  29. lastName = "Smith";
  30. bDay = DateTime.Today;
  31. address_1 = "123 Pine Ridge Circle";
  32. address_2 = "";
  33. city = "Boston";
  34. state = "MA";
  35. zip = 54321;
  36. country = "Canada";
  37.  
  38. Console.WriteLine(firstName + " | " + lastName + " | " + bDay.ToShortDateString() +
  39. " | " + address_1 + " | " + address_2 + " | " + city + " | " + state + " | " +
  40. zip.ToString() + " | " + country);
  41. }
  42. }
  43.  
Success #stdin #stdout 0.05s 24464KB
stdin
Standard input is empty
stdout
Jack | Smith | 6/2/2015 | 123 Pine Ridge Lane |  | Miami | FL | 12345 | US
Jill | Smith | 6/2/2015 | 123 Pine Ridge Circle |  | Boston | MA | 54321 | Canada