using System;
using System.Linq;
using System.Collections.Generic;
class Program
{
static void Main() {
int[] arr = { 12, 98, 80, 50, 88, 35, 60, 97, 85, 89 };
IEnumerable<int> topThree = arr.OrderByDescending(val => val).Take(3);
foreach (int n in topThree) {
Console.WriteLine(n);
}
}
}
/*
run:
98
97
89
*/