using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Console.Write("请输入一串数字"); string s = Console.ReadLine(); char[] chnum = s.ToCharArray();//转化为字符数组 for (int i = 0; i < s.Length; i++) { if (s[i] % 2 != 0) { Console.Write(s[i]); } } } } }