Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- esto es para hallar los menores en base a un numero definido por el usuario
- */
- # include <iostream>
- # include <cstdlib>
- using namespace std;
- int main(){
- int M=0, i=0, j=0, mayor=0, lug=0 ;
- cout<<"Ingrese los números de la matriz: ";cin>>M;
- cout<<"Ingrese el mayor: ";cin>>mayor;
- for(i=1; i++){
- for(j=1; j++){
- if(M[i][j]<mayor){
- lug .= "[".M[i].",".[j]."]";
- }
- }
- }
- cout<<"Los números menores se encuentran en los siguientes lugares /n"<<endl;
- cout<<lug<<endl;
- }
- /* no se que mierda hice pero está incompleto*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement