Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Tester
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[] Tol = { 98, 106, 214 };
- int k=0;
- for (int i = 0; i < Tol.Length; i++)
- if (Tol[i] < 718 && Tol[i] > 94)
- {
- if (Tol[i] > Tol[i + 1] && Tol[i] > Tol[i + 2])
- {
- k = Tol[i];
- }
- else if (Tol[i+1] > Tol[i] && Tol[i+1] > Tol[i + 2])
- {
- k = Tol[i+1];
- }
- else
- {
- k = Tol[i + 2];
- }
- }
- Console.WriteLine(k);
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement