You have
>= instead of
<= in your
For
statements.
This works:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
function1();
function2();
String line = Console.ReadLine();
}
static void function1()
{
for (int i = 0; i <= 5; i++)
{
Console.WriteLine("Function 1 Executed" + i.ToString());
}
}
static void function2()
{
for (int i = 0; i <= 5; i++)
{
Console.WriteLine("Function 2 Executed" + i.ToString());
}
}
}
}