Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void Main()
- {
- int[] scores = { 1, 4, 3 };
- string[] names = { "aba", "ab", "a" };
- Array.Sort(scores, names);
- foreach (int score in scores) {
- Console.WriteLine(score);
- }
- foreach (string name in names) {
- Console.WriteLine(name);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement