mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 04:48:53 +00:00
20 lines
No EOL
327 B
C#
20 lines
No EOL
327 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
class test
|
|
{
|
|
static int Main()
|
|
{
|
|
List<int> xItems = new List<int>();
|
|
xItems.Add(1);
|
|
xItems.Add(2);
|
|
xItems.Add(3);
|
|
int aReturn = 6;
|
|
for(int i = 0; i < xItems.Count; i++)
|
|
{
|
|
aReturn -= xItems[i];
|
|
}
|
|
xItems.Clear();
|
|
return aReturn;
|
|
}
|
|
} |