Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp44
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int[] b = new int[n];
- for (int i = 0; i < n; i++)
- {
- b[i] = int.Parse(Console.ReadLine());
- }
- Console.WriteLine();
- for (int i = 0; i<n; i++)
- if (b[i] % 2 == 1 && i%2 == 0 && b[i] >9)
- {
- Console.WriteLine((i+1) + " : " + b[i]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement