Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Collections.Generic;
- using System.Numerics;
- using System.Text;
- namespace exampreparation
- {
- class exam
- {
- static void Main(string[] args)
- {
- List<int> letters = Console.ReadLine().Split().Select(int.Parse).ToList();
- letters.RemoveAll(n => n % 2 == 1);
- Console.WriteLine(letters.Sum());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement