Created
February 4, 2013 04:59
-
-
Save FrankPortman/4705094 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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