Advertisement
nhorquender

isin

Sep 8th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.18 KB | None | 0 0
  1.         static Boolean perteneceInt(int valor,int[] vector){
  2.            
  3.             for(int i =0;i<vector.Length;i++){
  4.                 if (valor==vector[i]){
  5.                     return true;
  6.                 }
  7.             }
  8.             return false;
  9.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement