using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication10
{
class Program
{
static void Main(string[] args)
{
for (int i = 1; i < 11; i++)
{
if (i % 2 == 1)
Console.WriteLine( i );
}
}
}
}
原文:https://www.cnblogs.com/001sir/p/15164627.html