Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1.     public static void Main()
  2.     {
  3.         int[] scores = { 1, 4, 3 };
  4.         string[] names = { "aba", "ab", "a" };
  5.        
  6.         Array.Sort(scores, names);
  7.        
  8.         foreach (int score in scores) {
  9.             Console.WriteLine(score);
  10.         }
  11.         foreach (string name in names) {
  12.             Console.WriteLine(name);
  13.         }
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement