// Prueba enupal.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include "conio.h"
#include <string>
#include <math.h>
using namespace std;
int inicialzarYSumar(int m[4][4])
{
for (int i = 0; i < 4; i++)
{
for (int j = 0; j < 4; j++)
{
m[i][j] = (i+1)*(j+1);
}
}
cout << m[2][2] << endl;
for (int i = 0; i < 4; i++)
{
for (int j = 0; j < 4; j++)
{
cout << m[i][j] << " ";
}
cout << endl;
}
return 0;
}
void imprimir(int mensaje)
{
cout << "\t*****" << mensaje << "********" << endl;
}
int main()
{
int matriz[4][4] = { {2,3,5,5}, {5,8,65,7} };
int total;
total = inicialzarYSumar(matriz);
_getch();
return 0;
}