using using using using
System; System.Collections.Generic; System.Linq; System.Text;
namespace ConsoleApplication16 { class Program { static void Main(string[] args) { int N, i = 0, valor, c = 0; Console.Write("Ingrese tama�o del vector==>"); N = Convert.ToInt32(Console.ReadLine()); int[] A= new int[N]; while (i < N) { Console.Write("Ingrese valor en la posici�n {0}==>", i); valor = Convert.ToInt32(Console.ReadLine()); A[i] = valor; if (A[i] % 3 == 1) { c++; } i++;
} }
}
} Console.WriteLine("Cantidad de numeros impares es {0}", c); Console.ReadKey();