#编码
Console.WriteLine("1——100,不能被7整除的数:");
int nums = 0;
int count = 0;
int zong = 0;
for (nums = 1; nums <= 100;nums++ )
{
if (nums % 7 != 0 )
{
zong += nums;
count++;
Console.Write(nums + "\t");
if (count == 4)
{
Console.WriteLine();
count = 0;
}
}
}
Console.WriteLine();
Console.Write("总和:{0}",zong);
Console.ReadKey();