static void Main(string[] args)
{
int[] arr = {1, 2, 3, 3, 4, 5, 5, 0};
int countFirst = default, countSecond = default, multFisrt = 1, multSecond = 1;
foreach (int item in arr)
{
if (item == 3)
{
countFirst++;
multFisrt *= item;
}
else if(item == 5)
{
countSecond++;
multSecond *= item;
}
}
}