Void func(a[20][20],row,col)
{
int i,j,b[100],l;
cout<<"enter the no of rows and coloumns\n";
cin>>row>>col;
cout<<"enter the elements of the 2D array\n";
for(i=0;i<row;i++)
{
for(j=0;j<col;j++)
{ cin>>a[i][j];
}
}
for(i=0;i<row;i++)
{
for(j=0;j<col;j++)
{ if(a[i][j]%3==0 ||a[i][j]%5==0)
{
for(l=0;l<row+col;i++)
{ a[i][j]=b[l];
}}
else cout<<"thank you\n";
}}
for(l=0;l<row+col;l++)
{
cout<<"the elements are\n";
cout<<b[l];
}
}