I need to create a method that takes a 2d array as an argument to find out what numbers are divisible by 4 or 7. The array of integers are 1- 100 in a 2d array in c#.
this is what i got
public void DivisbleBy4And7(int[,] pNumberMatrix)
{
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
{
if (pNumberMatrix[i, j] % 4 || pNumberMatrix[i,j] % 7)
{
Console.WriteLine(pNumberMatrix[i,j];
}
else
{
Console.WriteLine("");
}
}
}
}