Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// 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
You can’t perform that action at this time.