Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Linq;
- using System;
- namespace Collections
- {
- class Array
- {
- static void Main(string[] args)
- {
- string[] monthsofYear =
- {
- "Jan",
- "Feb",
- "Mar",
- "Apr",
- "May",
- "Jun",
- "Jul",
- "Aug",
- "Sep",
- "Oct",
- "Nov",
- "Dec"
- };
- var reversed=monthsofYear.Reverse();
- //System.Array.Reverse(monthsofYear);
- foreach (string month in reversed)
- {
- Console.WriteLine(month);
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement