Advertisement
NedyalkoKikov

ArrayExamples

May 5th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ArrayExample
  8. {
  9. class ArrayExamples
  10. {
  11. static void Main()
  12. {
  13. string[] days = new string[7];
  14. {
  15. days[0] = "Monday";
  16. days[1] = "Tuesday";
  17. days[2] = "Wednesday";
  18. days[3] = "Thursday";
  19. days[4] = "Friday";
  20. days[5] = "Saturday";
  21. days[6] = "Sunday";
  22. }
  23. foreach(string d in days)
  24. {
  25. Console.WriteLine("this day is {0}",d);
  26. }
  27. }
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement