Tema: Problema C++
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/12/2013, 18:34
Avatar de bgab7
bgab7
 
Fecha de Ingreso: agosto-2013
Mensajes: 11
Antigüedad: 11 años, 1 mes
Puntos: 0
Respuesta: Problema C++

Código C++:
Ver original
  1. bool iguales(int arreglo[tamArreglo])
  2. {
  3.   for(int i;i<tamArreglo;i++)
  4.   {
  5.     for(int j;j<tamArreglo;j++)
  6.     {
  7.       if((arreglo[i]==arreglo[j])&&(i!=j))
  8.       {
  9.         return true;//Si hay un numero igual
  10.       }
  11.     }
  12.   }
  13.   return false;//No hay un numero igual
  14. }