Skip to content

Instantly share code, notes, and snippets.

@jpacora
Created May 27, 2017 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpacora/1bcec6866994123a5e390dc9c247f365 to your computer and use it in GitHub Desktop.
Save jpacora/1bcec6866994123a5e390dc9c247f365 to your computer and use it in GitHub Desktop.
//
// main.cpp
// ConneMinely
//
// Created by Jorge Pacora on 27/05/17.
// Copyright © 2017 Jorge Pacora. All rights reserved.
//
#include <iostream>
int main(int argc, const char * argv[]) {
// insert code here...
int N1, N2;
std::cout << "Ingrese un valor para N1: ";
std::cin >> N1;
std::cout << "\nIngrese un valor para N2: ";
std::cin >> N2;
//Declaramos la matriz
int Matriz[N1][N2];
//Leemos los datos de la matriz
for(int i=1; i<=N1; i++) {
for(int y=1; y<=N2; y++) {
std::cout << "\nIngrese un valor para Matriz["<<i<<"]["<<y<<"]: ";
std::cin >> Matriz[i][y];
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment