mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
23 lines
No EOL
506 B
C#
23 lines
No EOL
506 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace SimpleMethodsTest
|
|
{
|
|
public class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
var xValue1 = 33;
|
|
var xValue2 = 45;
|
|
var xSum = Sum(xValue1, xValue2);
|
|
var xSum2 = Sum(xSum, xValue2);
|
|
}
|
|
|
|
private static int Sum(int xValue1, int xValue2)
|
|
{
|
|
return xValue1 + xValue2;
|
|
}
|
|
}
|
|
} |