Console.WriteLine("请输入1到100间不能被7整除的数");
int b=0;
int line = 0;
for(int i=1;i<=100;i++)
{ if (i % 7 != 0)
{ Console.Write("{0}\t" ,i );
line++;
b += i; if (line % 4 == 0)
{ Console.WriteLine("");
}
}
} Console.WriteLine("he");
Console.WriteLine(b );
Console .ReadKey();