int sum=0;
int cnt=0;
for (int i = 7; i < 1000; i+=7)
{
Console.WriteLine(i.ToString());
cnt++;
sum +=i;
if(cnt%5==0)
{
Console.WriteLine(sum);
sum=0;
}
class Program
{
public static int t = 0;
static void Main(string[] args)
{
int Key = 0;
for (int i = 1; i <= 1000; i++)
{
if (i % 7 == 0)
{
t += 1;
Key += i;
if (t % 5 == 0)
{
Console.WriteLine(Key);
Key = 0;
}