Skip to content

Instantly share code, notes, and snippets.

@FrankPortman
Created February 4, 2013 04:59
Show Gist options
  • Save FrankPortman/4705094 to your computer and use it in GitHub Desktop.
Save FrankPortman/4705094 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace sumApplication
{
class Program
{
static public int sumFrom(int x, int y)
{
int result = 0;
for (int i = 1; i < y + 1; i++)
result = result + i;
return result;
}
static void Main()
{
Console.WriteLine(sumFrom(1, 10000));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment