Advertisement
Raizekas

Untitled

Jan 27th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Rask paskutinę didžiausią reikšmę.
  2.  
  3. static int Max (int[] M)
  4. {
  5.     int max=0;
  6.     for(int i=0; i<M.Length; i++)
  7.     {
  8.         if(max<=M[i])
  9.             max=M[i];
  10.     }
  11.     return max;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement