C#'
C# function
왕왕왕왕
2015. 11. 7. 11:13
함수의 구조
void func ()
{
}
반환형 함수명 (매개변수)
{
내용
}
class Test
{
static void Print(int n1, int n2, int n3)
{
System.Console.WriteLine("{0} {1} {2}", n1,n2,n3);
}
static void Main()
{
Print(10, 20, 30);
}
}