Advertisement
Guest User

T2-testX2

a guest
May 25th, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. /*
  2.     esto es para hallar los menores en base a un numero definido por el usuario            
  3. */
  4.  
  5. # include <iostream>
  6. # include <cstdlib>
  7.  
  8. using namespace std;
  9.  
  10. int main(){
  11.     int M=0, i=0, j=0, mayor=0, lug=0 ;
  12.    
  13.     cout<<"Ingrese los números de la matriz: ";cin>>M;
  14.     cout<<"Ingrese el mayor: ";cin>>mayor;
  15.    
  16.     for(i=1; i++){
  17.         for(j=1; j++){
  18.             if(M[i][j]<mayor){
  19.                 lug .= "[".M[i].",".[j]."]";
  20.             }
  21.         }
  22.     }
  23.     cout<<"Los números menores se encuentran en los siguientes lugares /n"<<endl;
  24.     cout<<lug<<endl;
  25.    
  26. }
  27.  
  28. /* no se que mierda hice  pero está incompleto*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement