31 lines
745 B
C#
31 lines
745 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data.SqlTypes;
|
|
|
|
namespace iterations
|
|
{
|
|
internal class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
int input_number;
|
|
string result = string.Empty;
|
|
{
|
|
Console.WriteLine("Please enter a number:");
|
|
input_number = int.Parse(Console.ReadLine());
|
|
for (int i = 0; i < input_number; i++)
|
|
{
|
|
if (i % 7 == 0)
|
|
{
|
|
result = result + i.ToString() + ",";
|
|
}
|
|
}
|
|
|
|
Console.WriteLine(result);
|
|
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
} |