This repository has been archived on 2020-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
ibz/software/1_sem/se-07-iterations/iterations/Program.cs

26 lines
683 B
C#

using System;
using System.Collections.Generic;
using System.Data.SqlTypes;
namespace iterations
{
internal class Program
{
public static void Main(string[] args)
{
string result = string.Empty;
{
Console.WriteLine("Please enter a number:");
int 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);
}
}
}
}