refactor the iterations programm

This commit is contained in:
Andreas Zweili 2017-06-10 08:45:23 +02:00
parent 299b12e46f
commit fbddde6d78
1 changed files with 1 additions and 2 deletions

View File

@ -8,11 +8,10 @@ namespace iterations
{
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());
var input_number = int.Parse(Console.ReadLine());
for (int i = 0; i < input_number; i++)
{
if (i % 7 == 0)