using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication7
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? int sum = 0;
? ? ? ? ? ? int line = 1;
? ? ? ? ? ? Console.WriteLine("1-100之間不能被7整除的數(shù)據(jù)為:");
? ? ? ? ? ? for (int i = 1; i <= 100; i++)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? if (i % 7 == 0)
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? continue;
? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? else
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? Console.Write(i + "\t");
? ? ? ? ? ? ? ? ? ? sum += i;
? ? ? ? ? ? ? ? ? ? line++;
? ? ? ? ? ? ? ? ? ? if (line % 4 == 0)
? ? ? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? ? Console.WriteLine();
? ? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? }
? ? ? ? ? ? }
? ? ? ? ? ? Console.WriteLine("數(shù)據(jù)總和:{0}", sum);
? ? ? ? ? ? Console.ReadKey();
? ? ? ? }
? ? }
}