/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby,
C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include <iostream>
using namespace std;
int generarNumeroPar();
int main()
{
int f,c,num;
cout<<"ingrese el numero de filas f:";
cin>>f;
cout<<"ingrese en numero de columnas c:";
cin>>c;
int Data[f][c];
num=52;
for(int i=0;i<f;i++)
{
for(int j=0;j<c;j++)
{
Data[i][j]=generarNumeroPar();
num=num+2;
}
}
for(int i=0;i<f;i++)
{
for(int j=0;j<c;j++)
{
cout<<Data[i][j]<<"\t";
}
cout<<endl;
}
}
int generarNumeroPar()
{
int num=0;
num=50 + rand() % (101-50);
if(num%2==0)
return num;
else generarNumeroPar();
return 52;
}