mirror of
https://github.com/Smaug123/WoofWare.PawPrint
synced 2025-10-10 16:28:41 +00:00
Add more test cases (#11)
This commit is contained in:
17
WoofWare.PawPrint.Test/sources/TriangleNumber.cs
Normal file
17
WoofWare.PawPrint.Test/sources/TriangleNumber.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace TriangleNumber
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static int Main(string[] args)
|
||||
{
|
||||
var answer = 0;
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
answer += i;
|
||||
}
|
||||
return answer;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user