Consider the following method.
public void numberCheck(int maxNum)
{
int typeA = 0;
int typeB = 0;
int typeC = 0;
for (int k = 1; k <= maxNum; k++)
{
if (k % 2 == 0 && k % 5 == 0)
typeA++;
if (k % 2 == 0)
typeB++;
if (k % 5 == 0)
typeC++;
}
System.out.println(typeA + " " + typeB + " " + typeC);
}
What is printed as a result of the call numberCheck(50)?
A) 5 20 5
B) 5 20 10
C) 5 25 5
D) 5 25 10
E) 30 25 10