Created
May 27, 2017 21:56
-
-
Save jpacora/1bcec6866994123a5e390dc9c247f365 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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