Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1.         static void GetTheLongestSequence(int[] array)
  2.         {
  3.             for (int i = 0; i < array.Length - 1; i++)
  4.             {
  5.                 if (array[i] < array[i + 1])
  6.                 {
  7.                     Console.Write(array[i] + " ");
  8.                 }
  9.             }
  10.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement